Elin Modding Docs Doc
Loading...
Searching...
No Matches
GoalList.cs
1using System;
2using System.Collections.Generic;
3
4// Token: 0x020002A0 RID: 672
5public class GoalList
6{
7 // Token: 0x060015A6 RID: 5542 RVA: 0x00093B0C File Offset: 0x00091D0C
8 public void Refresh(Chara owner, GoalListType type)
9 {
10 this.list.Clear();
11 this.index = -1;
12 if (type == GoalListType.None)
13 {
14 if (owner.IsHomeMember())
15 {
16 type = GoalListType.Home;
17 }
18 else if (owner.IsGuest())
19 {
20 type = GoalListType.Guest;
21 }
22 }
23 switch (type)
24 {
25 case GoalListType.Home:
26 case GoalListType.Guest:
27 this.list.Add(new GoalIdle());
28 return;
29 case GoalListType.Enemy:
30 this.list.Add(new GoalVisitorEnemy());
31 return;
32 }
33 this.list.Add(new GoalIdle());
34 }
35
36 // Token: 0x060015A7 RID: 5543 RVA: 0x00093B92 File Offset: 0x00091D92
37 public Goal Next()
38 {
39 this.index++;
40 if (this.index >= this.list.Count)
41 {
42 this.index = 0;
43 }
44 return this.list[this.index].Duplicate();
45 }
46
47 // Token: 0x04001015 RID: 4117
48 public int index = -2;
49
50 // Token: 0x04001016 RID: 4118
51 public List<Goal> list = new List<Goal>();
52}
Definition Chara.cs:12
Definition Goal.cs:5