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
TerrainPass.cs
Go to the documentation of this file.
1using System;
4using Terraria.IO;
7
9{
10 [global::Cpp2ILInjected.Token(Token = "0x20008F9")]
11 public class TerrainPass : GenPass
12 {
13 [global::Cpp2ILInjected.Token(Token = "0x6004645")]
14 [global::Cpp2ILInjected.Address(RVA = "0x7D3444", Offset = "0x7D3444", Length = "0x54")]
15 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WorldGen), Member = "GenerateWorld", MemberParameters = new object[]
16 {
17 typeof(int),
19 }, ReturnType = typeof(void))]
20 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
21 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GenPass), Member = ".ctor", MemberParameters = new object[]
22 {
23 typeof(string),
24 typeof(double)
25 }, ReturnType = typeof(void))]
26 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
27 public TerrainPass()
28 {
29 throw null;
30 }
31
32 [global::Cpp2ILInjected.Token(Token = "0x6004646")]
33 [global::Cpp2ILInjected.Address(RVA = "0x7D3498", Offset = "0x7D3498", Length = "0xBC8")]
34 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
35 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
36 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GameConfiguration[]), Member = "Get", MemberTypeParameters = new object[] { typeof(int) }, MemberParameters = new object[] { typeof(string) }, ReturnType = "T")]
37 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GenerationProgress), Member = "set_Message", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
38 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GenBase), Member = "get__random", ReturnType = typeof(UnifiedRandom))]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[]
40 {
41 typeof(int),
42 typeof(int)
43 }, ReturnType = typeof(int))]
44 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TerrainPass.SurfaceHistory), Member = ".ctor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
45 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "GetTileDefinition", MemberParameters = new object[]
46 {
47 typeof(int),
48 typeof(ushort),
49 typeof(short),
50 typeof(short),
51 typeof(short),
52 typeof(byte),
53 typeof(byte),
54 typeof(byte)
55 }, ReturnType = typeof(uint))]
56 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GenerationProgress), Member = "Set", MemberParameters = new object[] { typeof(double) }, ReturnType = typeof(void))]
57 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Min", MemberParameters = new object[]
58 {
59 typeof(double),
60 typeof(double)
61 }, ReturnType = typeof(double))]
62 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Max", MemberParameters = new object[]
63 {
64 typeof(double),
65 typeof(double)
66 }, ReturnType = typeof(double))]
67 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
68 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TerrainPass), Member = "GenerateWorldSurfaceOffset", MemberParameters = new object[] { typeof(TerrainPass.TerrainFeatureType) }, ReturnType = typeof(double))]
69 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "Clamp", MemberTypeParameters = new object[] { "T" }, MemberParameters = new object[] { "T", "T", "T" }, ReturnType = "T")]
70 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TerrainPass), Member = "FillColumn", MemberParameters = new object[]
71 {
72 typeof(int),
73 typeof(double),
74 typeof(double)
75 }, ReturnType = typeof(void))]
76 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TerrainPass), Member = "RetargetSurfaceHistory", MemberParameters = new object[]
77 {
78 typeof(TerrainPass.SurfaceHistory),
79 typeof(int),
80 typeof(double)
81 }, ReturnType = typeof(void))]
82 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 45)]
83 protected override void ApplyPass(GenerationProgress progress, GameConfiguration configuration)
84 {
85 throw null;
86 }
87
88 [global::Cpp2ILInjected.Token(Token = "0x6004647")]
89 [global::Cpp2ILInjected.Address(RVA = "0x7D471C", Offset = "0x7D471C", Length = "0x1B4")]
90 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
91 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TerrainPass), Member = "ApplyPass", MemberParameters = new object[]
92 {
95 }, ReturnType = typeof(void))]
96 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
97 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
98 private void FillColumn(int x, double worldSurface, double rockLayer)
99 {
100 throw null;
101 }
102
103 [global::Cpp2ILInjected.Token(Token = "0x6004648")]
104 [global::Cpp2ILInjected.Address(RVA = "0x7D49E0", Offset = "0x7D49E0", Length = "0x1B0")]
105 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
106 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TerrainPass), Member = "RetargetSurfaceHistory", MemberParameters = new object[]
107 {
109 typeof(int),
110 typeof(double)
111 }, ReturnType = typeof(void))]
112 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
113 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
114 {
115 typeof(int),
116 typeof(int)
117 }, ReturnType = typeof(Tile))]
118 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "active", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
119 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_frameX", MemberParameters = new object[] { typeof(short) }, ReturnType = typeof(void))]
120 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_frameY", MemberParameters = new object[] { typeof(short) }, ReturnType = typeof(void))]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
122 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "active", ReturnType = typeof(bool))]
123 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_type", MemberParameters = new object[] { typeof(ushort) }, ReturnType = typeof(void))]
124 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
125 private static void RetargetColumn(int x, double worldSurface)
126 {
127 throw null;
128 }
129
130 [global::Cpp2ILInjected.Token(Token = "0x6004649")]
131 [global::Cpp2ILInjected.Address(RVA = "0x7D40C8", Offset = "0x7D40C8", Length = "0x62C")]
132 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
133 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TerrainPass), Member = "ApplyPass", MemberParameters = new object[]
134 {
137 }, ReturnType = typeof(void))]
138 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
139 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "get_genRand", ReturnType = typeof(UnifiedRandom))]
140 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
141 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GenBase), Member = "get__random", ReturnType = typeof(UnifiedRandom))]
142 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[]
143 {
144 typeof(int),
145 typeof(int)
146 }, ReturnType = typeof(int))]
147 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
149 {
150 throw null;
151 }
152
153 [global::Cpp2ILInjected.Token(Token = "0x600464A")]
154 [global::Cpp2ILInjected.Address(RVA = "0x7D48D0", Offset = "0x7D48D0", Length = "0x110")]
155 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
156 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TerrainPass), Member = "ApplyPass", MemberParameters = new object[]
157 {
160 }, ReturnType = typeof(void))]
161 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
162 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TerrainPass), Member = "RetargetColumn", MemberParameters = new object[]
163 {
164 typeof(int),
165 typeof(double)
166 }, ReturnType = typeof(void))]
168 {
169 throw null;
170 }
171
172 [global::Cpp2ILInjected.Token(Token = "0x4008267")]
173 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
174 private uint skyDefinition;
175
176 [global::Cpp2ILInjected.Token(Token = "0x4008268")]
177 [global::Cpp2ILInjected.FieldOffset(Offset = "0x24")]
178 private uint dirtDefinition;
179
180 [global::Cpp2ILInjected.Token(Token = "0x4008269")]
181 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
182 private uint rockDefinition;
183
184 [global::Cpp2ILInjected.Token(Token = "0x20008FA")]
186 {
187 [global::Cpp2ILInjected.Token(Token = "0x400826B")]
188 Plateau,
189 [global::Cpp2ILInjected.Token(Token = "0x400826C")]
190 Hill,
191 [global::Cpp2ILInjected.Token(Token = "0x400826D")]
192 Dale,
193 [global::Cpp2ILInjected.Token(Token = "0x400826E")]
194 Mountain,
195 [global::Cpp2ILInjected.Token(Token = "0x400826F")]
196 Valley
197 }
198
199 [global::Cpp2ILInjected.Token(Token = "0x20008FB")]
200 private class SurfaceHistory
201 {
202 [global::Cpp2ILInjected.Token(Token = "0x170007F1")]
203 public double this[int index]
204 {
205 [global::Cpp2ILInjected.Token(Token = "0x600464B")]
206 [global::Cpp2ILInjected.Address(RVA = "0x7D4B9C", Offset = "0x7D4B9C", Length = "0x24")]
207 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
208 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
209 get
210 {
211 throw null;
212 }
213 [global::Cpp2ILInjected.Token(Token = "0x600464C")]
214 [global::Cpp2ILInjected.Address(RVA = "0x7D4BC0", Offset = "0x7D4BC0", Length = "0x24")]
215 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
216 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
217 set
218 {
219 throw null;
220 }
221 }
222
223 [global::Cpp2ILInjected.Token(Token = "0x170007F2")]
224 public int Length
225 {
226 [global::Cpp2ILInjected.Token(Token = "0x600464D")]
227 [global::Cpp2ILInjected.Address(RVA = "0x7D4B90", Offset = "0x7D4B90", Length = "0xC")]
228 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
229 get
230 {
231 throw null;
232 }
233 }
234
235 [global::Cpp2ILInjected.Token(Token = "0x600464E")]
236 [global::Cpp2ILInjected.Address(RVA = "0x7D4060", Offset = "0x7D4060", Length = "0x68")]
237 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TerrainPass), Member = "ApplyPass", MemberParameters = new object[]
238 {
241 }, ReturnType = typeof(void))]
242 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
243 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
244 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
245 public SurfaceHistory(int size)
246 {
247 throw null;
248 }
249
250 [global::Cpp2ILInjected.Token(Token = "0x600464F")]
251 [global::Cpp2ILInjected.Address(RVA = "0x7D46F4", Offset = "0x7D46F4", Length = "0x28")]
252 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
253 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
254 public void Record(double height)
255 {
256 throw null;
257 }
258
259 [global::Cpp2ILInjected.Token(Token = "0x4008270")]
260 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
261 private readonly double[] _heights;
262
263 [global::Cpp2ILInjected.Token(Token = "0x4008271")]
264 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
265 private int _index;
266 }
267 }
268}
class f__AnonymousType0<< Count > j__TPar
override void ApplyPass(GenerationProgress progress, GameConfiguration configuration)
static double GenerateWorldSurfaceOffset(TerrainPass.TerrainFeatureType featureType)
static void RetargetColumn(int x, double worldSurface)
void FillColumn(int x, double worldSurface, double rockLayer)
static void RetargetSurfaceHistory(TerrainPass.SurfaceHistory history, int targetX, double targetHeight)