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
NetLiquidModule.cs
Go to the documentation of this file.
1using System;
3using System.IO;
5using Terraria.Net;
6
8{
9 // Token: 0x020009F0 RID: 2544
11 {
12 // Token: 0x06004B5B RID: 19291 RVA: 0x0026EA8C File Offset: 0x0026CC8C
14 {
16 BinaryWriter writer = netPacket.Writer;
17 Tile tile;
18 byte liquid = tile.liquid;
19 Tile tile2;
20 byte b = tile2.liquidType();
21 throw new OutOfMemoryException();
22 }
23
24 // Token: 0x06004B5C RID: 19292 RVA: 0x0026EAC8 File Offset: 0x0026CCC8
26 {
27 int num = 1;
28 if (num == 0)
29 {
30 }
31 if (num == 0)
32 {
33 }
34 if (num == 0)
35 {
36 }
37 BinaryWriter writer = NetModule.CreatePacket(42181264).Writer;
38 Tile tile;
39 byte liquid = tile.liquid;
40 Tile tile2;
41 byte b = tile2.liquidType();
42 if (false)
43 {
44 throw new OutOfMemoryException();
45 }
46 throw new OutOfMemoryException();
47 }
48
49 // Token: 0x06004B5D RID: 19293 RVA: 0x0026EB1C File Offset: 0x0026CD1C
50 public override bool Deserialize(BinaryReader reader, int userId)
51 {
52 Tile tile;
53 bool isLoaded = tile.IsLoaded;
54 return true;
55 }
56
57 // Token: 0x06004B5E RID: 19294 RVA: 0x0026EB34 File Offset: 0x0026CD34
66
67 // Token: 0x06004B5F RID: 19295 RVA: 0x0026EB50 File Offset: 0x0026CD50
69 {
70 int num = 1;
71 long num2 = 0L;
72 if (num == 0)
73 {
74 }
75 if (num != 0)
76 {
77 if (num == 0)
78 {
79 }
81 }
82 }
83
84 // Token: 0x06004B60 RID: 19296 RVA: 0x0026EB74 File Offset: 0x0026CD74
85 private static void BroadcastEachChunkSeparately()
86 {
87 if (!true)
88 {
89 }
90 if (!true)
91 {
92 }
93 if (!true)
94 {
95 }
96 }
97
98 // Token: 0x06004B61 RID: 19297 RVA: 0x0026EBA4 File Offset: 0x0026CDA4
100 {
101 if (!true)
102 {
103 }
104 }
105
106 // Token: 0x06004B62 RID: 19298 RVA: 0x0026EBD4 File Offset: 0x0026CDD4
114
115 // Token: 0x06004B63 RID: 19299 RVA: 0x0026EBEC File Offset: 0x0026CDEC
117 {
118 if (!true)
119 {
120 }
121 int sectionY = Netplay.GetSectionY(Netplay.GetSectionX(-1073741824));
122 if (!true)
123 {
124 }
125 }
126
127 // Token: 0x06004B64 RID: 19300 RVA: 0x0026EC2C File Offset: 0x0026CE2C
129 {
130 }
131
132 // Token: 0x06004B65 RID: 19301 RVA: 0x0026EC40 File Offset: 0x0026CE40
133 // Note: this type is marked as 'beforefieldinit'.
135 {
136 }
137
138 // Token: 0x040085AB RID: 34219
140
141 // Token: 0x040085AC RID: 34220
143
144 // Token: 0x020009F1 RID: 2545
145 private class ChunkChanges
146 {
147 // Token: 0x06004B66 RID: 19302 RVA: 0x0026EC50 File Offset: 0x0026CE50
148 public ChunkChanges(int x, int y)
149 {
150 this.ChunkX = x;
151 }
152
153 // Token: 0x06004B67 RID: 19303 RVA: 0x0026EC6C File Offset: 0x0026CE6C
155 {
156 /*
157An exception occurred when decompiling this method (06004B67)
158
159ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.NetModules.NetLiquidModule/ChunkChanges::BroadcastingCondition(System.Int32)
160
161 ---> System.Exception: Basic block has to end with unconditional control flow.
162{
163 IL_0000:
164 brtrue(IL_0000, ldc.i4:bool(1))
165}
166
167 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
168 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
169 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
170 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
171 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
172 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
173 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
174 --- End of inner exception stack trace ---
175 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
176 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
177*/;
178 }
179
180 // Token: 0x040085AD RID: 34221
182
183 // Token: 0x040085AE RID: 34222
184 public int ChunkX;
185
186 // Token: 0x040085AF RID: 34223
187 public int ChunkY;
188 }
189 }
190}
class f__AnonymousType0<< Count > j__TPar
static void CreateAndBroadcastByChunk(HashSet< int > dirtiedPackedTileCoords)
static Dictionary< Point, NetLiquidModule.ChunkChanges > _changesByChunkCoords
static void DistributeChangesIntoChunks(HashSet< int > dirtiedPackedTileCoords)
static NetPacket Serialize(HashSet< int > changes)
override bool Deserialize(BinaryReader reader, int userId)
static NetPacket SerializeForPlayer(int playerIndex)
static void BroadcastAllChanges(HashSet< int > dirtiedPackedTileCoords)
static void PrepareChunks(HashSet< int > dirtiedPackedTileCoords)
static int GetSectionX(int x)
Definition Netplay.cs:487
static int GetSectionY(int y)
Definition Netplay.cs:493
void liquidType(int liquidType)
Definition Tile.cs:936
byte liquid
Definition Tile.cs:110
bool IsLoaded
Definition Tile.cs:34