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
TEHatRack.cs
Go to the documentation of this file.
1using System;
2using System.IO;
11using Terraria.UI;
12
14{
15 // Token: 0x02000812 RID: 2066
17 {
18 // Token: 0x0600421E RID: 16926 RVA: 0x00249F04 File Offset: 0x00248104
19 public TEHatRack()
20 {
21 if (!true)
22 {
23 }
24 base..ctor();
25 Item[] items = this._items;
26 Item[] dyes = this._dyes;
27 if (15 == 0)
28 {
29 }
30 int num = 10;
32 }
33
34 // Token: 0x0600421F RID: 16927 RVA: 0x00249F50 File Offset: 0x00248150
35 public override void RegisterTileEntityID(int assignedID)
36 {
37 }
38
39 // Token: 0x06004220 RID: 16928 RVA: 0x000021DB File Offset: 0x000003DB
40 public override TileEntity GenerateInstance()
41 {
42 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
43 }
44
45 // Token: 0x06004221 RID: 16929 RVA: 0x00249F60 File Offset: 0x00248160
46 public override void NetPlaceEntityAttempt(int x, int y)
47 {
48 int num = TEHatRack.Place(x, y);
49 }
50
51 // Token: 0x06004222 RID: 16930 RVA: 0x00249F78 File Offset: 0x00248178
52 public static int Place(int x, int y)
53 {
54 if (!true)
55 {
56 }
57 int num = TileEntity.AssignNewID();
58 Monitor.Enter(x, x != 0);
59 long num2 = 0L;
60 Monitor.Exit(x);
61 if (num2 == 0L)
62 {
63 return x;
64 }
65 throw new OutOfMemoryException();
66 }
67
68 // Token: 0x06004223 RID: 16931 RVA: 0x00249FC8 File Offset: 0x002481C8
69 public static int Hook_AfterPlacement(int x, int y, int type = 475, int style = 0, int direction = 1, int alternate = 0)
70 {
71 int num = 1;
72 if (num == 0)
73 {
74 }
76 if (num == 0)
77 {
78 }
79 int myPlayer = Main.myPlayer;
80 return 87;
81 }
82
83 // Token: 0x06004224 RID: 16932 RVA: 0x0024A00C File Offset: 0x0024820C
84 public static void Kill(int x, int y)
85 {
86 int key = TileEntity.GetKey(x, y);
87 int key2 = TileEntity.GetKey(x, y);
88 if (!false)
89 {
90 return;
91 }
92 throw new OutOfMemoryException();
93 }
94
95 // Token: 0x06004225 RID: 16933 RVA: 0x0024A050 File Offset: 0x00248250
96 public static int Find(int x, int y)
97 {
98 if (!true)
99 {
100 }
101 int key = TileEntity.GetKey(int.MinValue, x);
102 return int.MinValue;
103 }
104
105 // Token: 0x06004226 RID: 16934 RVA: 0x0024A078 File Offset: 0x00248278
106 public override void WriteExtraData(BinaryWriter writer, bool networkSend)
107 {
108 BitsByte bitsByte = 0;
109 Vector2 position = this._items.position;
110 Vector2 velocity = this._items.velocity;
112 Item[] dyes = this._dyes;
113 Item[] items = this._items;
114 Item[] dyes2 = this._dyes;
115 }
116
117 // Token: 0x06004227 RID: 16935 RVA: 0x0024A0E0 File Offset: 0x002482E0
118 public override void ReadExtraData(BinaryReader reader, bool networkSend)
119 {
120 Item[] items = this._items;
121 Item[] items2 = this._items;
122 Item[] dyes = this._dyes;
123 Item[] dyes2 = this._dyes;
124 }
125
126 // Token: 0x06004228 RID: 16936 RVA: 0x0024A11C File Offset: 0x0024831C
127 public override string ToString()
128 {
129 Point16 position = this.Position;
130 string text;
131 if ((text == null || text != null) && ("x " == null || "x " != null))
132 {
133 short y = this.Position.Y;
134 string text2;
135 if ((text2 == null || text2 != null) && ("y item: " == null || "y item: " != null))
136 {
138 if (position2 == null || position2 == null || position2 == null)
139 {
140 }
141 if (" " == null || " " != null)
142 {
143 Vector2 velocity = this._items.velocity;
144 if (velocity == null || velocity == null || velocity != null)
145 {
146 string text3;
147 return text3;
148 }
149 }
150 }
151 }
152 throw new ArrayTypeMismatchException();
153 }
154
155 // Token: 0x06004229 RID: 16937 RVA: 0x0024A1B4 File Offset: 0x002483B4
156 public static void Framing_CheckTile(int callX, int callY)
157 {
158 int num = 1;
159 if (num == 0)
160 {
161 }
162 if (num == 0)
163 {
164 short frameX = Framing.GetTileSafely(callX, callY).frameX;
165 if (num == 0)
166 {
167 }
168 Tile tile;
169 bool flag = tile.active();
170 if (num == 0)
171 {
172 }
174 if (num == 0)
175 {
176 }
178 if (num == 0)
179 {
180 }
183 if (num == 0)
184 {
185 }
186 if (num == 0)
187 {
188 }
189 if (num == 0)
190 {
191 }
192 Tile tile2;
193 bool flag5 = tile2.active();
194 if (num == 0)
195 {
196 }
197 Tile tile3;
198 ushort type = tile3.type;
199 if (num == 0)
200 {
201 }
202 long num2 = 0L;
203 long num3 = 0L;
204 long num4 = 0L;
205 WorldGen.KillTile(callX, callY, num2 != 0L, num3 != 0L, num4 != 0L);
206 if (num == 0)
207 {
208 }
209 }
210 }
211
212 // Token: 0x0600422A RID: 16938 RVA: 0x0024A270 File Offset: 0x00248470
213 public void Draw(int tileLeftX, int tileTopY)
214 {
215 int num = 1;
217 int num2 = 1;
219 int num3 = 1;
220 dollPlayer.Male = num2 != 0;
225 Item[] items = this._items;
226 Item[] armor = dollPlayer.armor;
227 Vector2 position = items.position;
228 if (position == null || position != null)
229 {
230 armor.position = position;
231 Item[] dyes = this._dyes;
232 Item[] dye = dollPlayer.dye;
233 Vector2 position2 = dyes.position;
234 if (position2 == null || position2 != null)
235 {
237 dollPlayer.ResetEffects();
238 dollPlayer.ResetVisibleAccessories();
239 int num4 = 1;
240 dollPlayer.invis = num4 != 0;
241 dollPlayer.UpdateDyes();
242 dollPlayer.DisplayDollUpdate();
243 dollPlayer.PlayerFrame();
244 int direction = dollPlayer.direction;
245 int width = dollPlayer.width;
246 bool wet = dollPlayer.wet;
247 dollPlayer.direction = direction;
248 int direction2 = dollPlayer.direction;
249 int num5 = 14;
250 if (direction2 == 0)
251 {
252 }
253 Camera camera = Main.Camera;
254 float x = dollPlayer.position.X;
255 float y = dollPlayer.position.Y;
256 float x2 = dollPlayer.fullRotationOrigin.X;
257 float y2 = dollPlayer.fullRotationOrigin.Y;
258 if (num5 != 0)
259 {
260 }
261 return;
262 }
263 }
264 throw new ArrayTypeMismatchException();
265 }
266
267 // Token: 0x0600422B RID: 16939 RVA: 0x0024A4C8 File Offset: 0x002486C8
268 public override bool TryGetItemGamepadOverrideInstructions(Item[] inv, int context, int slot, [Out] string instruction)
269 {
270 bool flag;
271 if (flag)
272 {
273 }
274 if (context != 0)
275 {
276 if (!flag)
277 {
278 }
279 int myPlayer = Main.myPlayer;
282 if (!flag)
283 {
284 }
285 }
286 if (!flag)
287 {
288 return;
289 }
290 }
291
292 // Token: 0x0600422C RID: 16940 RVA: 0x0024A4F8 File Offset: 0x002486F8
293 public override void OnPlayerUpdate(Player player)
294 {
295 int x = player.tileEntityAnchor.X;
296 int y = player.tileEntityAnchor.Y;
298 int chest = player.chest;
299 int talkNPC = player.talkNPC;
300 }
301
302 // Token: 0x0600422D RID: 16941 RVA: 0x0024A54C File Offset: 0x0024874C
303 public static void OnPlayerInteraction(Player player, int clickX, int clickY)
304 {
305 if (!true)
306 {
307 }
308 Tile tile;
309 short frameX = tile.frameX;
310 int num = 36409;
311 Tile tile2;
312 short frameY = tile2.frameY;
313 int num2 = TEHatRack.Find(clickX, num);
315 }
316
317 // Token: 0x0600422E RID: 16942 RVA: 0x0024A584 File Offset: 0x00248784
318 private void DrawInner(Player player, SpriteBatch spriteBatch)
319 {
320 if (!true)
321 {
322 }
323 }
324
325 // Token: 0x0600422F RID: 16943 RVA: 0x0024A598 File Offset: 0x00248798
326 private void DrawSlotPairSet(Player player, SpriteBatch spriteBatch, int slotsToShowLine, int slotsArrayOffset, float offsetX, float offsetY, int inventoryContextTarget)
327 {
328 if (16992 == 0)
329 {
330 }
331 float inventoryScale = Main.inventoryScale;
333 int num = 40;
334 if (num == 0)
335 {
336 }
337 int mouseX = Main.mouseX;
338 int mouseY = Main.mouseY;
339 if (num == 0)
340 {
341 }
345 }
346
347 // Token: 0x06004230 RID: 16944 RVA: 0x0024A60C File Offset: 0x0024880C
348 public override bool OverrideItemSlotHover(Item[] inv, int context = 0, int slot = 0)
349 {
350 /*
351An exception occurred when decompiling this method (06004230)
352
353ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Tile_Entities.TEHatRack::OverrideItemSlotHover(Terraria.Item[],System.Int32,System.Int32)
354
355 ---> System.Exception: Basic block has to end with unconditional control flow.
356{
357 IL_001E:
358 callsetter:int32(Main::set_cursorOverride, ldc.i4:int32(8))
359}
360
361 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
362 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
363 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
364 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
365 --- End of inner exception stack trace ---
366 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
367 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
368*/;
369 }
370
371 // Token: 0x06004231 RID: 16945 RVA: 0x0024A644 File Offset: 0x00248844
372 public override bool OverrideItemSlotLeftClick(Item[] inv, int context = 0, int slot = 0)
373 {
374 int num = 1;
375 if (num == 0)
376 {
377 }
379 if (num == 0)
380 {
381 }
382 int cursorOverride = Main.cursorOverride;
383 if (context == 0)
384 {
385 if (num == 0)
386 {
387 }
389 bool flag;
390 return flag;
391 }
393 int myPlayer = Main.myPlayer;
394 int myPlayer2 = Main.myPlayer;
395 Item item;
396 if (item == null || item != null)
397 {
398 bool netClient = Main.NetClient;
399 int myPlayer3 = Main.myPlayer;
400 int id = this.ID;
401 }
402 throw new ArrayTypeMismatchException();
403 }
404
405 // Token: 0x06004232 RID: 16946 RVA: 0x0024A6D0 File Offset: 0x002488D0
406 public static bool FitsHatRack(Item item)
407 {
408 }
409
410 // Token: 0x06004233 RID: 16947 RVA: 0x0024A6E0 File Offset: 0x002488E0
411 private bool TryFitting(Item[] inv, int context = 0, int slot = 0, bool justCheck = false)
412 {
413 /*
414An exception occurred when decompiling this method (06004233)
415
416ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Tile_Entities.TEHatRack::TryFitting(Terraria.Item[],System.Int32,System.Int32,System.Boolean)
417
418 ---> System.Exception: Basic block has to end with unconditional control flow.
419{
420 Block_0:
421 stloc:Vector2(var_3_11, ldfld:Vector2(Entity::position, ldfld:class Terraria.Item[][exp:Entity](TEHatRack::_items, ldloc:TEHatRack(this))))
422 stloc:class Terraria.Item[](var_5_18, ldfld:class Terraria.Item[](TEHatRack::_items, ldloc:TEHatRack(this)))
423 stloc:class Terraria.Item[](var_9_26, ldfld:class Terraria.Item[](TEHatRack::_items, ldloc:TEHatRack(this)))
424 stloc:bool(var_11_30, callgetter:bool(Main::get_NetClient))
425 stloc:int32(var_13_3A, callgetter:int32(Main::get_myPlayer))
426 stloc:int32(var_14_42, ldfld:int32(TileEntity::ID, ldloc:TEHatRack[exp:TileEntity](this)))
427}
428
429 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
430 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
431 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
432 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
433 --- End of inner exception stack trace ---
434 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
435 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
436*/;
437 }
438
439 // Token: 0x06004234 RID: 16948 RVA: 0x0024A738 File Offset: 0x00248938
440 public void WriteItem(int itemIndex, BinaryWriter writer, bool dye)
441 {
442 }
443
444 // Token: 0x06004235 RID: 16949 RVA: 0x0024A748 File Offset: 0x00248948
445 public void ReadItem(int itemIndex, BinaryReader reader, bool dye)
446 {
447 }
448
449 // Token: 0x06004236 RID: 16950 RVA: 0x0024A758 File Offset: 0x00248958
450 public override bool IsTileValidForEntity(int x, int y)
451 {
452 /*
453An exception occurred when decompiling this method (06004236)
454
455ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Tile_Entities.TEHatRack::IsTileValidForEntity(System.Int32,System.Int32)
456
457 ---> System.Exception: Basic block has to end with unconditional control flow.
458{
459 IL_0029:
460 stloc:int16(var_9_30, callgetter:int16(Tile::get_frameX, ldloc:Tile[exp:valuetype Terraria.Tile&](var_8)))
461}
462
463 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
464 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
465 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
466 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
467 --- End of inner exception stack trace ---
468 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
469 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
470*/;
471 }
472
473 // Token: 0x06004237 RID: 16951 RVA: 0x0024A798 File Offset: 0x00248998
474 public static bool IsBreakable(int clickX, int clickY)
475 {
476 int num = 1;
477 if (num == 0)
478 {
479 }
480 Tile tile;
481 short frameX = tile.frameX;
482 long num2 = 0L;
483 Tile tile2;
484 int num3 = TEHatRack.Find((int)tile2.frameY, (int)num2);
485 if (num == 0)
486 {
487 }
488 bool flag;
489 return flag;
490 }
491
492 // Token: 0x06004238 RID: 16952 RVA: 0x0024A7D8 File Offset: 0x002489D8
493 public bool ContainsItems()
494 {
495 /*
496An exception occurred when decompiling this method (06004238)
497
498ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Tile_Entities.TEHatRack::ContainsItems()
499
500 ---> System.Exception: Basic block has to end with unconditional control flow.
501{
502 Block_0:
503 stloc:class Terraria.Item[](var_1_09, ldfld:class Terraria.Item[](TEHatRack::_items, ldloc:TEHatRack(this)))
504 stloc:class Terraria.Item[](var_3_10, ldfld:class Terraria.Item[](TEHatRack::_dyes, ldloc:TEHatRack(this)))
505}
506
507 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
508 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
509 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
510 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
511 --- End of inner exception stack trace ---
512 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
513 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
514*/;
515 }
516
517 // Token: 0x06004239 RID: 16953 RVA: 0x0024A7FC File Offset: 0x002489FC
518 public void FixLoadedData()
519 {
520 long entityId = this._items.entityId;
521 long entityId2 = this._dyes.entityId;
522 }
523
524 // Token: 0x040080C5 RID: 32965
525 private static byte _myEntityID;
526
527 // Token: 0x040080C6 RID: 32966
528 private const int MyTileID = 475;
529
530 // Token: 0x040080C7 RID: 32967
531 private const int entityTileWidth = 3;
532
533 // Token: 0x040080C8 RID: 32968
534 private const int entityTileHeight = 4;
535
536 // Token: 0x040080C9 RID: 32969
538
539 // Token: 0x040080CA RID: 32970
540 public Item[] _items;
541
542 // Token: 0x040080CB RID: 32971
543 public Item[] _dyes;
544
545 // Token: 0x040080CC RID: 32972
546 private static int hatTargetSlot;
547 }
548}
class f__AnonymousType0<< Count > j__TPar
static void Exit(object obj)
Definition Monitor.cs:47
static void Enter(object obj)
Definition Monitor.cs:11
static void BasicOpenCloseInteraction(Player player, int x, int y, int id)
static int GetKey(int x, int y)
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
static Tile GetTileSafely(Vector2 position)
Definition Framing.cs:356
static bool IsBreakable(int clickX, int clickY)
Definition TEHatRack.cs:474
override bool IsTileValidForEntity(int x, int y)
Definition TEHatRack.cs:450
override void ReadExtraData(BinaryReader reader, bool networkSend)
Definition TEHatRack.cs:118
static int Hook_AfterPlacement(int x, int y, int type=475, int style=0, int direction=1, int alternate=0)
Definition TEHatRack.cs:69
void WriteItem(int itemIndex, BinaryWriter writer, bool dye)
Definition TEHatRack.cs:440
override void WriteExtraData(BinaryWriter writer, bool networkSend)
Definition TEHatRack.cs:106
override void NetPlaceEntityAttempt(int x, int y)
Definition TEHatRack.cs:46
static void Framing_CheckTile(int callX, int callY)
Definition TEHatRack.cs:156
override bool OverrideItemSlotHover(Item[] inv, int context=0, int slot=0)
Definition TEHatRack.cs:348
bool TryFitting(Item[] inv, int context=0, int slot=0, bool justCheck=false)
Definition TEHatRack.cs:411
override bool TryGetItemGamepadOverrideInstructions(Item[] inv, int context, int slot, [Out] string instruction)
Definition TEHatRack.cs:268
static void OnPlayerInteraction(Player player, int clickX, int clickY)
Definition TEHatRack.cs:303
void DrawInner(Player player, SpriteBatch spriteBatch)
Definition TEHatRack.cs:318
override void OnPlayerUpdate(Player player)
Definition TEHatRack.cs:293
void ReadItem(int itemIndex, BinaryReader reader, bool dye)
Definition TEHatRack.cs:445
override bool OverrideItemSlotLeftClick(Item[] inv, int context=0, int slot=0)
Definition TEHatRack.cs:372
override void RegisterTileEntityID(int assignedID)
Definition TEHatRack.cs:35
void Draw(int tileLeftX, int tileTopY)
Definition TEHatRack.cs:213
void DrawSlotPairSet(Player player, SpriteBatch spriteBatch, int slotsToShowLine, int slotsArrayOffset, float offsetX, float offsetY, int inventoryContextTarget)
Definition TEHatRack.cs:326
static int myPlayer
Definition Main.cs:2337
static int cursorOverride
Definition Main.cs:3147
static bool NetClient
Definition Main.cs:5438
static bool NetClientOnly
Definition Main.cs:5407
static float inventoryScale
Definition Main.cs:2253
static Terraria.Graphics.Camera Camera
Definition Main.cs:296
static int mouseY
Definition Main.cs:601
static int mouseX
Definition Main.cs:587
PlayerInteractionAnchor tileEntityAnchor
Definition Player.cs:23135
static bool ShiftInUse
Definition ItemSlot.cs:41
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static bool SolidTileAllowBottomSlope(int i, int j)
short frameY
Definition Tile.cs:285
short frameX
Definition Tile.cs:244
bool active()
Definition Tile.cs:1241