Elin Modding Docs Doc
All Classes Namespaces
DynamicAct.cs
1using System;
2
3// Token: 0x020001BA RID: 442
4public class DynamicAct : Act
5{
6 // Token: 0x17000320 RID: 800
7 // (get) Token: 0x06000CB9 RID: 3257 RVA: 0x00062EB1 File Offset: 0x000610B1
8 public override string ID
9 {
10 get
11 {
12 return this.id;
13 }
14 }
15
16 // Token: 0x17000321 RID: 801
17 // (get) Token: 0x06000CBA RID: 3258 RVA: 0x00062EB9 File Offset: 0x000610B9
18 public override TargetType TargetType
19 {
20 get
21 {
22 return this._targetType;
23 }
24 }
25
26 // Token: 0x17000322 RID: 802
27 // (get) Token: 0x06000CBB RID: 3259 RVA: 0x00062EC1 File Offset: 0x000610C1
28 public override bool IsHostileAct
29 {
30 get
31 {
32 return this.isHostileAct;
33 }
34 }
35
36 // Token: 0x17000323 RID: 803
37 // (get) Token: 0x06000CBC RID: 3260 RVA: 0x00062EC9 File Offset: 0x000610C9
38 public override CursorInfo CursorIcon
39 {
40 get
41 {
42 return this.cursor;
43 }
44 }
45
46 // Token: 0x17000324 RID: 804
47 // (get) Token: 0x06000CBD RID: 3261 RVA: 0x00062ED1 File Offset: 0x000610D1
48 public override bool CloseLayers
49 {
50 get
51 {
52 return this.closeLayers;
53 }
54 }
55
56 // Token: 0x06000CBE RID: 3262 RVA: 0x00062ED9 File Offset: 0x000610D9
57 public override string GetText(string str = "")
58 {
59 return Lang.Get(this.id);
60 }
61
62 // Token: 0x17000325 RID: 805
63 // (get) Token: 0x06000CBF RID: 3263 RVA: 0x00062EE6 File Offset: 0x000610E6
64 public override int PerformDistance
65 {
66 get
67 {
68 return this.dist;
69 }
70 }
71
72 // Token: 0x17000326 RID: 806
73 // (get) Token: 0x06000CC0 RID: 3264 RVA: 0x00062EEE File Offset: 0x000610EE
74 public override bool CanPressRepeat
75 {
76 get
77 {
78 return this.canRepeat != null && this.canRepeat();
79 }
80 }
81
82 // Token: 0x06000CC1 RID: 3265 RVA: 0x00062F05 File Offset: 0x00061105
83 public DynamicAct(string _id, Func<bool> _onPerform = null, bool _closeLayers = false)
84 {
85 this.id = _id;
86 this.onPerform = _onPerform;
87 this.closeLayers = _closeLayers;
88 DynamicAct.lastAct = this;
89 }
90
91 // Token: 0x17000327 RID: 807
92 // (get) Token: 0x06000CC2 RID: 3266 RVA: 0x00062F41 File Offset: 0x00061141
93 public override bool LocalAct
94 {
95 get
96 {
97 return !(this.id == "actNewZone") && this.localAct;
98 }
99 }
100
101 // Token: 0x06000CC3 RID: 3267 RVA: 0x00062F5D File Offset: 0x0006115D
102 public override bool Perform()
103 {
104 return this.onPerform != null && this.onPerform();
105 }
106
107 // Token: 0x04000CCD RID: 3277
108 public static DynamicAct lastAct;
109
110 // Token: 0x04000CCE RID: 3278
111 public new string id;
112
113 // Token: 0x04000CCF RID: 3279
114 public Func<bool> onPerform;
115
116 // Token: 0x04000CD0 RID: 3280
117 public Func<bool> canRepeat;
118
119 // Token: 0x04000CD1 RID: 3281
120 public bool closeLayers;
121
122 // Token: 0x04000CD2 RID: 3282
123 public bool isHostileAct;
124
125 // Token: 0x04000CD3 RID: 3283
126 public bool localAct = true;
127
128 // Token: 0x04000CD4 RID: 3284
129 public CursorInfo cursor;
130
131 // Token: 0x04000CD5 RID: 3285
132 public int dist = 1;
133
134 // Token: 0x04000CD6 RID: 3286
135 public TargetType _targetType = TargetType.Any;
136}
Definition Act.2.cs:7