terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
GameComponent.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000339 RID: 825
8 public class GameComponent : IGameComponent, IUpdateable, IComparable<GameComponent>
9 {
10 // Token: 0x1400000A RID: 10
11 // (add) Token: 0x060014C8 RID: 5320 RVA: 0x0005F4AC File Offset: 0x0005D6AC
12 // (remove) Token: 0x060014C9 RID: 5321 RVA: 0x0005F4D4 File Offset: 0x0005D6D4
14 {
16 add
17 {
19 if (@delegate != null && @delegate == null)
20 {
21 return;
22 }
23 }
25 remove
26 {
28 if (@delegate != null && @delegate == null)
29 {
30 return;
31 }
32 }
33 }
34
35 // Token: 0x1400000B RID: 11
36 // (add) Token: 0x060014CA RID: 5322 RVA: 0x0005F4FC File Offset: 0x0005D6FC
37 // (remove) Token: 0x060014CB RID: 5323 RVA: 0x0005F524 File Offset: 0x0005D724
39 {
41 add
42 {
44 if (@delegate != null && @delegate == null)
45 {
46 return;
47 }
48 }
50 remove
51 {
53 if (@delegate != null && @delegate == null)
54 {
55 return;
56 }
57 }
58 }
59
60 // Token: 0x060014CC RID: 5324 RVA: 0x0005F54C File Offset: 0x0005D74C
61 public GameComponent(Game game)
62 {
63 this._game = game;
64 this.Enabled = true;
65 }
66
67 // Token: 0x17000215 RID: 533
68 // (get) Token: 0x060014CD RID: 5325 RVA: 0x0005F570 File Offset: 0x0005D770
69 public Game Game
70 {
71 get
72 {
73 return this._game;
74 }
75 }
76
77 // Token: 0x060014CE RID: 5326 RVA: 0x0005F584 File Offset: 0x0005D784
78 public virtual void Initialize()
79 {
80 }
81
82 // Token: 0x060014CF RID: 5327 RVA: 0x0005F594 File Offset: 0x0005D794
83 public virtual void Update(GameTime gameTime)
84 {
85 }
86
87 // Token: 0x17000216 RID: 534
88 // (get) Token: 0x060014D0 RID: 5328 RVA: 0x0005F5A4 File Offset: 0x0005D7A4
90 {
91 get
92 {
93 return this._game.GraphicsDevice;
94 }
95 }
96
97 // Token: 0x17000217 RID: 535
98 // (get) Token: 0x060014D1 RID: 5329 RVA: 0x0005F5BC File Offset: 0x0005D7BC
99 // (set) Token: 0x060014D2 RID: 5330 RVA: 0x0005F5D0 File Offset: 0x0005D7D0
100 public bool Enabled
101 {
102 get
103 {
104 return this._enabled;
105 }
106 set
107 {
109 if (true)
110 {
111 if (enabledChanged != null)
112 {
113 }
114 return;
115 }
116 while (enabledChanged != null)
117 {
118 }
119 }
120 }
121
122 // Token: 0x17000218 RID: 536
123 // (get) Token: 0x060014D3 RID: 5331 RVA: 0x0005F5F0 File Offset: 0x0005D7F0
124 // (set) Token: 0x060014D4 RID: 5332 RVA: 0x0005F604 File Offset: 0x0005D804
125 public int UpdateOrder
126 {
127 get
128 {
129 return this._updateOrder;
130 }
131 set
132 {
135 if (true)
136 {
137 if (updateOrderChanged != null)
138 {
139 }
140 return;
141 }
142 while (updateOrderChanged != null)
143 {
144 }
145 }
146 }
147
148 // Token: 0x060014D5 RID: 5333 RVA: 0x0005F62C File Offset: 0x0005D82C
149 private void Raise(EventHandler<EventArgs> handler, EventArgs e)
150 {
151 if (handler != null)
152 {
153 return;
154 }
155 }
156
157 // Token: 0x060014D6 RID: 5334 RVA: 0x0005F640 File Offset: 0x0005D840
158 protected virtual void OnUpdateOrderChanged(object sender, EventArgs args)
159 {
160 }
161
162 // Token: 0x060014D7 RID: 5335 RVA: 0x0005F650 File Offset: 0x0005D850
163 protected virtual void OnEnabledChanged(object sender, EventArgs args)
164 {
165 }
166
167 // Token: 0x060014D8 RID: 5336 RVA: 0x0005F660 File Offset: 0x0005D860
168 public void Dispose()
169 {
170 }
171
172 // Token: 0x060014D9 RID: 5337 RVA: 0x0005F670 File Offset: 0x0005D870
174 {
175 /*
176An exception occurred when decompiling this method (060014D9)
177
178ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Microsoft.Xna.Framework.GameComponent::CompareTo(Microsoft.Xna.Framework.GameComponent)
179
180 ---> System.Exception: Basic block has to end with unconditional control flow.
181{
182 Block_0:
183 stloc:int32(var_0_06, ldfld:int32(GameComponent::_updateOrder, ldloc:GameComponent(other)))
184 stloc:int32(var_1_0D, ldfld:int32(GameComponent::_updateOrder, ldloc:GameComponent(this)))
185}
186
187 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
188 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
189 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
190 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
191 --- End of inner exception stack trace ---
192 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
193 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
194*/;
195 }
196
197 // Token: 0x040022BD RID: 8893
198 private Game _game;
199
200 // Token: 0x040022BE RID: 8894
201 private int _updateOrder;
202
203 // Token: 0x040022BF RID: 8895
204 private bool _enabled;
205
206 // Token: 0x040022C0 RID: 8896
209
210 // Token: 0x040022C1 RID: 8897
213 }
214}
class f__AnonymousType0<< Count > j__TPar
void Raise(EventHandler< EventArgs > handler, EventArgs e)
virtual void OnUpdateOrderChanged(object sender, EventArgs args)
int CompareTo(GameComponent other)
EventHandler< EventArgs > EnabledChanged
virtual void OnEnabledChanged(object sender, EventArgs args)
EventHandler< EventArgs > UpdateOrderChanged
virtual void Update(GameTime gameTime)
GraphicsDevice GraphicsDevice
Definition Game.cs:31
static Delegate Combine(Delegate a, Delegate b)
Definition Delegate.cs:255
static Delegate Remove(Delegate source, Delegate value)
Definition Delegate.cs:278