terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
TreeTopsInfo.cs
Go to the documentation of this file.
1using System;
2using System.IO;
7using Terraria.IO;
11
13{
14 [global::Cpp2ILInjected.Token(Token = "0x2000804")]
15 public class TreeTopsInfo
16 {
17 [global::Cpp2ILInjected.Token(Token = "0x60041C0")]
18 [global::Cpp2ILInjected.Address(RVA = "0x7831B4", Offset = "0x7831B4", Length = "0x7C")]
19 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
20 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldFile), Member = "SaveWorldHeader", MemberParameters = new object[] { typeof(BinaryWriter) }, ReturnType = typeof(int))]
21 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
22 public void Save(BinaryWriter writer)
23 {
24 throw null;
25 }
26
27 [global::Cpp2ILInjected.Token(Token = "0x60041C1")]
28 [global::Cpp2ILInjected.Address(RVA = "0x783230", Offset = "0x783230", Length = "0x1BC")]
29 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
30 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldFile), Member = "LoadHeader", MemberParameters = new object[] { typeof(BinaryReader) }, ReturnType = typeof(void))]
31 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
32 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
33 public void Load(BinaryReader reader, int loadVersion)
34 {
35 throw null;
36 }
37
38 [global::Cpp2ILInjected.Token(Token = "0x60041C2")]
39 [global::Cpp2ILInjected.Address(RVA = "0x783500", Offset = "0x783500", Length = "0x5C")]
40 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
41 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NetMessage), Member = "SendData", MemberParameters = new object[]
42 {
43 typeof(int),
44 typeof(int),
45 typeof(int),
47 typeof(int),
48 typeof(float),
49 typeof(float),
50 typeof(float),
51 typeof(int),
52 typeof(int),
53 typeof(int)
54 }, ReturnType = typeof(void))]
55 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
56 public void SyncSend(BinaryWriter writer)
57 {
58 throw null;
59 }
60
61 [global::Cpp2ILInjected.Token(Token = "0x60041C3")]
62 [global::Cpp2ILInjected.Address(RVA = "0x78355C", Offset = "0x78355C", Length = "0x68")]
63 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
64 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(MessageBuffer), Member = "ProcessData", MemberParameters = new object[]
65 {
66 typeof(byte[]),
67 typeof(int),
68 typeof(ref int)
69 }, ReturnType = typeof(void))]
70 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
71 public void SyncReceive(BinaryReader reader)
72 {
73 throw null;
74 }
75
76 [global::Cpp2ILInjected.Token(Token = "0x60041C4")]
77 [global::Cpp2ILInjected.Address(RVA = "0x7835C8", Offset = "0x7835C8", Length = "0x10")]
78 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "GetCommonTreeFoliageData", MemberParameters = new object[]
79 {
80 typeof(int),
81 typeof(int),
82 typeof(int),
83 typeof(ref int),
84 typeof(ref int),
85 typeof(ref int),
86 typeof(ref int),
87 typeof(ref int)
88 }, ReturnType = typeof(bool))]
89 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "GetHollowTreeFoliageStyle", ReturnType = typeof(int))]
90 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
91 public int GetTreeStyle(int areaId)
92 {
93 throw null;
94 }
95
96 [global::Cpp2ILInjected.Token(Token = "0x60041C5")]
97 [global::Cpp2ILInjected.Address(RVA = "0x7835D8", Offset = "0x7835D8", Length = "0x30C")]
98 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
99 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Projectile), Member = "Kill", ReturnType = typeof(void))]
100 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Point), Member = ".ctor", MemberParameters = new object[]
102 {
103 typeof(int),
104 typeof(int)
105 }, ReturnType = typeof(void))]
106 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Framing), Member = "GetTileSafely", MemberParameters = new object[] { typeof(Point) }, ReturnType = typeof(Tile))]
107 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "active", ReturnType = typeof(bool))]
108 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
109 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "oceanDepths", MemberParameters = new object[]
110 {
111 typeof(int),
112 typeof(int)
113 }, ReturnType = typeof(bool))]
114 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TreeTopsInfo), Member = "RandomizeTreeStyle", MemberParameters = new object[]
115 {
117 typeof(int)
118 }, ReturnType = typeof(void))]
119 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
121 {
122 throw null;
123 }
124
125 [global::Cpp2ILInjected.Token(Token = "0x60041C6")]
126 [global::Cpp2ILInjected.Address(RVA = "0x7838E4", Offset = "0x7838E4", Length = "0x1E0")]
127 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
128 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TreeTopsInfo), Member = "RandomizeTreeStyleBasedOnWorldPosition", MemberParameters = new object[]
129 {
132 }, ReturnType = typeof(void))]
133 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
134 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RuntimeHelpers), Member = "InitializeArray", MemberParameters = new object[]
135 {
136 typeof(Array),
138 }, ReturnType = typeof(void))]
139 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils[]), Member = "NextFromList", MemberTypeParameters = new object[] { typeof(int) }, MemberParameters = new object[]
140 {
142 typeof(int[])
143 }, ReturnType = "T")]
144 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
145 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_NetHost", ReturnType = typeof(bool))]
146 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NetMessage), Member = "SendData", MemberParameters = new object[]
147 {
148 typeof(int),
149 typeof(int),
150 typeof(int),
152 typeof(int),
153 typeof(float),
154 typeof(float),
155 typeof(float),
156 typeof(int),
157 typeof(int),
158 typeof(int)
159 }, ReturnType = typeof(void))]
160 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
162 {
163 throw null;
164 }
165
166 [global::Cpp2ILInjected.Token(Token = "0x60041C7")]
167 [global::Cpp2ILInjected.Address(RVA = "0x7835C4", Offset = "0x7835C4", Length = "0x4")]
168 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
169 private void DoTreeFX(int areaID)
170 {
171 throw null;
172 }
173
174 [global::Cpp2ILInjected.Token(Token = "0x60041C8")]
175 [global::Cpp2ILInjected.Address(RVA = "0x783AC4", Offset = "0x783AC4", Length = "0x4")]
176 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.WorldGen.<>c", Member = "<GenerateWorld>b__277_0", MemberParameters = new object[]
177 {
180 }, ReturnType = typeof(void))]
181 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
182 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TreeTopsInfo), Member = "CopyExistingWorldInfo", ReturnType = typeof(void))]
184 {
185 throw null;
186 }
187
188 [global::Cpp2ILInjected.Token(Token = "0x60041C9")]
189 [global::Cpp2ILInjected.Address(RVA = "0x7833EC", Offset = "0x7833EC", Length = "0x114")]
190 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldFile_OldConsole), Member = "LoadHeader", MemberParameters = new object[] { typeof(BinaryReader) }, ReturnType = typeof(void))]
191 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldFile_OldSwitch), Member = "LoadHeader", MemberParameters = new object[] { typeof(BinaryReader) }, ReturnType = typeof(void))]
192 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TreeTopsInfo), Member = "CopyExistingWorldInfoForWorldGeneration", ReturnType = typeof(void))]
193 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
194 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
196 {
197 throw null;
198 }
199
200 [global::Cpp2ILInjected.Token(Token = "0x60041CA")]
201 [global::Cpp2ILInjected.Address(RVA = "0x783AC8", Offset = "0x783AC8", Length = "0x84")]
202 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = ".cctor", ReturnType = typeof(void))]
203 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
204 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
205 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
207 {
208 throw null;
209 }
210
211 [global::Cpp2ILInjected.Token(Token = "0x4008089")]
212 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
213 private int[] _variations;
214
215 [global::Cpp2ILInjected.Token(Token = "0x2000805")]
216 public class AreaId
217 {
218 [global::Cpp2ILInjected.Token(Token = "0x60041CB")]
219 [global::Cpp2ILInjected.Address(RVA = "0x783B4C", Offset = "0x783B4C", Length = "0x8")]
220 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
221 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
222 public AreaId()
223 {
224 throw null;
225 }
226
227 // Note: this type is marked as 'beforefieldinit'.
228 [global::Cpp2ILInjected.Token(Token = "0x60041CC")]
229 [global::Cpp2ILInjected.Address(RVA = "0x783B54", Offset = "0x783B54", Length = "0x4C")]
230 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
231 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
232 static AreaId()
233 {
234 throw null;
235 }
236
237 [global::Cpp2ILInjected.Token(Token = "0x400808A")]
238 public const int Forest1 = 0;
239
240 [global::Cpp2ILInjected.Token(Token = "0x400808B")]
241 public const int Forest2 = 1;
242
243 [global::Cpp2ILInjected.Token(Token = "0x400808C")]
244 public const int Forest3 = 2;
245
246 [global::Cpp2ILInjected.Token(Token = "0x400808D")]
247 public const int Forest4 = 3;
248
249 [global::Cpp2ILInjected.Token(Token = "0x400808E")]
250 public const int Corruption = 4;
251
252 [global::Cpp2ILInjected.Token(Token = "0x400808F")]
253 public const int Jungle = 5;
254
255 [global::Cpp2ILInjected.Token(Token = "0x4008090")]
256 public const int Snow = 6;
257
258 [global::Cpp2ILInjected.Token(Token = "0x4008091")]
259 public const int Hallow = 7;
260
261 [global::Cpp2ILInjected.Token(Token = "0x4008092")]
262 public const int Crimson = 8;
263
264 [global::Cpp2ILInjected.Token(Token = "0x4008093")]
265 public const int Desert = 9;
266
267 [global::Cpp2ILInjected.Token(Token = "0x4008094")]
268 public const int Ocean = 10;
269
270 [global::Cpp2ILInjected.Token(Token = "0x4008095")]
271 public const int GlowingMushroom = 11;
272
273 [global::Cpp2ILInjected.Token(Token = "0x4008096")]
274 public const int Underworld = 12;
275
276 [global::Cpp2ILInjected.Token(Token = "0x4008097")]
277 public static readonly int Count;
278 }
279 }
280}
class f__AnonymousType0<< Count > j__TPar
void RandomizeTreeStyleBasedOnWorldPosition(UnifiedRandom rand, Vector2 worldPosition)
void SyncSend(BinaryWriter writer)
void SyncReceive(BinaryReader reader)
void Load(BinaryReader reader, int loadVersion)
void RandomizeTreeStyle(UnifiedRandom rand, int areaId)
void Save(BinaryWriter writer)