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
GraniteBiome.cs
Go to the documentation of this file.
1using System;
8using Terraria.IO;
11
13{
14 [global::Cpp2ILInjected.Token(Token = "0x20008EE")]
15 public class GraniteBiome : MicroBiome
16 {
17 [global::Cpp2ILInjected.Token(Token = "0x600460A")]
18 [global::Cpp2ILInjected.Address(RVA = "0x7C8BC0", Offset = "0x7C8BC0", Length = "0xE8")]
19 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.WorldGen.<>c", Member = "<GenerateWorld>b__277_22", MemberParameters = new object[]
20 {
23 }, ReturnType = typeof(void))]
24 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
25 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "BiomeTileCheck", MemberParameters = new object[]
26 {
27 typeof(int),
28 typeof(int)
29 }, ReturnType = typeof(bool))]
30 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
31 {
32 typeof(int),
33 typeof(int)
34 }, ReturnType = typeof(Tile))]
35 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "active", ReturnType = typeof(bool))]
36 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
37 public static bool CanPlace(Point origin, StructureMap structures)
38 {
39 throw null;
40 }
41
42 [global::Cpp2ILInjected.Token(Token = "0x600460B")]
43 [global::Cpp2ILInjected.Address(RVA = "0x7C8CA8", Offset = "0x7C8CA8", Length = "0x16C")]
44 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
45 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
46 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
47 {
48 typeof(int),
49 typeof(int)
50 }, ReturnType = typeof(Tile))]
51 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "active", ReturnType = typeof(bool))]
52 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Array), Member = "GetLength", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
53 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GraniteBiome), Member = "BuildMagmaMap", MemberParameters = new object[] { typeof(Point) }, ReturnType = typeof(void))]
54 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GraniteBiome), Member = "SimulatePressure", MemberParameters = new object[] { typeof(ref Rectangle) }, ReturnType = typeof(void))]
55 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GraniteBiome), Member = "PlaceGranite", MemberParameters = new object[]
56 {
59 }, ReturnType = typeof(void))]
60 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GraniteBiome), Member = "CleanupTiles", MemberParameters = new object[]
61 {
64 }, ReturnType = typeof(void))]
65 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GraniteBiome), Member = "PlaceDecorations", MemberParameters = new object[]
66 {
69 }, ReturnType = typeof(void))]
70 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StructureMap), Member = "AddStructure", MemberParameters = new object[]
71 {
73 typeof(int)
74 }, ReturnType = typeof(void))]
75 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
76 public override bool Place(Point origin, StructureMap structures)
77 {
78 throw null;
79 }
80
81 [global::Cpp2ILInjected.Token(Token = "0x600460C")]
82 [global::Cpp2ILInjected.Address(RVA = "0x7C8E14", Offset = "0x7C8E14", Length = "0x1E8")]
83 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
84 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GraniteBiome), Member = "Place", MemberParameters = new object[]
85 {
88 }, ReturnType = typeof(bool))]
89 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
90 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Array), Member = "GetLength", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
91 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "SolidTile", MemberParameters = new object[]
92 {
93 typeof(int),
94 typeof(int),
95 typeof(bool)
96 }, ReturnType = typeof(bool))]
97 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
99 {
100 throw null;
101 }
102
103 [global::Cpp2ILInjected.Token(Token = "0x600460D")]
104 [global::Cpp2ILInjected.Address(RVA = "0x7C8FFC", Offset = "0x7C8FFC", Length = "0x5C0")]
105 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
106 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GraniteBiome), Member = "Place", MemberParameters = new object[]
107 {
108 typeof(Point),
110 }, ReturnType = typeof(bool))]
111 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
112 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Array), Member = "GetLength", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
113 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils[]), Member = "Clamp", MemberTypeParameters = new object[] { typeof(int) }, MemberParameters = new object[]
114 {
115 typeof(int),
116 typeof(int),
117 typeof(int)
118 }, ReturnType = "T")]
119 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2D), Member = "op_Multiply", MemberParameters = new object[]
120 {
121 typeof(double),
123 }, ReturnType = typeof(Vector2D))]
124 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2D), Member = "op_Addition", MemberParameters = new object[]
125 {
128 }, ReturnType = typeof(Vector2D))]
129 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2D), Member = "Length", ReturnType = typeof(double))]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Max", MemberParameters = new object[]
131 {
132 typeof(double),
133 typeof(double)
134 }, ReturnType = typeof(double))]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils[]), Member = "Swap", MemberTypeParameters = new object[] { typeof(object) }, MemberParameters = new object[]
136 {
137 typeof(ref object),
138 typeof(ref object)
139 }, ReturnType = typeof(void))]
140 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = ".ctor", MemberParameters = new object[]
141 {
142 typeof(int),
143 typeof(int),
144 typeof(int),
145 typeof(int)
146 }, ReturnType = typeof(void))]
147 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
149 {
150 throw null;
151 }
152
153 [global::Cpp2ILInjected.Token(Token = "0x600460E")]
154 [global::Cpp2ILInjected.Address(RVA = "0x7CA200", Offset = "0x7CA200", Length = "0x1EC")]
155 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
156 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GraniteBiome), Member = "PlaceGranite", MemberParameters = new object[]
157 {
158 typeof(Point),
160 }, ReturnType = typeof(void))]
161 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
162 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Array), Member = "GetLength", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
163 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
164 {
165 typeof(int),
166 typeof(int)
167 }, ReturnType = typeof(Tile))]
168 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "active", ReturnType = typeof(bool))]
169 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
170 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
172 {
173 throw null;
174 }
175
176 [global::Cpp2ILInjected.Token(Token = "0x600460F")]
177 [global::Cpp2ILInjected.Address(RVA = "0x7C95BC", Offset = "0x7C95BC", Length = "0x3B4")]
178 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
179 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GraniteBiome), Member = "Place", MemberParameters = new object[]
180 {
181 typeof(Point),
183 }, ReturnType = typeof(bool))]
184 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
185 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GraniteBiome), Member = "ShouldUseLava", MemberParameters = new object[] { typeof(Point) }, ReturnType = typeof(bool))]
186 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "get_Right", ReturnType = typeof(int))]
187 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "get_Bottom", ReturnType = typeof(int))]
188 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
189 {
190 typeof(int),
191 typeof(int)
192 }, ReturnType = typeof(Tile))]
193 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Max", MemberParameters = new object[]
194 {
195 typeof(double),
196 typeof(double)
197 }, ReturnType = typeof(double))]
198 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "SolidTile", MemberParameters = new object[]
199 {
200 typeof(int),
201 typeof(int),
202 typeof(bool)
203 }, ReturnType = typeof(bool))]
204 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
205 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "ResetToType", MemberParameters = new object[] { typeof(ushort) }, ReturnType = typeof(void))]
206 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldUtils), Member = "ClearTile", MemberParameters = new object[]
207 {
208 typeof(int),
209 typeof(int),
210 typeof(bool)
211 }, ReturnType = typeof(void))]
212 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_wall", MemberParameters = new object[] { typeof(ushort) }, ReturnType = typeof(void))]
213 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_liquid", ReturnType = typeof(byte))]
214 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "liquidType", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
215 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
217 {
218 throw null;
219 }
220
221 [global::Cpp2ILInjected.Token(Token = "0x6004610")]
222 [global::Cpp2ILInjected.Address(RVA = "0x7C9970", Offset = "0x7C9970", Length = "0x444")]
223 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
224 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GraniteBiome), Member = "Place", MemberParameters = new object[]
225 {
226 typeof(Point),
228 }, ReturnType = typeof(bool))]
229 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
230 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<Point16>), Member = ".ctor", ReturnType = typeof(void))]
231 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "get_Right", ReturnType = typeof(int))]
232 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "get_Bottom", ReturnType = typeof(int))]
233 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "SolidTile", MemberParameters = new object[]
234 {
235 typeof(int),
236 typeof(int),
237 typeof(bool)
238 }, ReturnType = typeof(bool))]
239 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Point16), Member = ".ctor", MemberParameters = new object[]
240 {
241 typeof(int),
242 typeof(int)
243 }, ReturnType = typeof(void))]
244 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<Point16>), Member = "GetEnumerator", ReturnType = "Enumerator<T>")]
245 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<Point16>.Enumerator), Member = "MoveNext", ReturnType = typeof(bool))]
246 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldUtils), Member = "ClearTile", MemberParameters = new object[]
247 {
248 typeof(int),
249 typeof(int),
250 typeof(bool)
251 }, ReturnType = typeof(void))]
252 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
253 {
254 typeof(int),
255 typeof(int)
256 }, ReturnType = typeof(Tile))]
257 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "set_wall", MemberParameters = new object[] { typeof(ushort) }, ReturnType = typeof(void))]
258 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(List<Point16>.Enumerator), Member = "Dispose", ReturnType = typeof(void))]
259 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 21)]
261 {
262 throw null;
263 }
264
265 [global::Cpp2ILInjected.Token(Token = "0x6004611")]
266 [global::Cpp2ILInjected.Address(RVA = "0x7C9DB4", Offset = "0x7C9DB4", Length = "0x418")]
267 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
268 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GraniteBiome), Member = "Place", MemberParameters = new object[]
269 {
270 typeof(Point),
272 }, ReturnType = typeof(bool))]
273 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
274 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FastRandom), Member = ".ctor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
275 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FastRandom), Member = "WithModifier", MemberParameters = new object[] { typeof(ulong) }, ReturnType = typeof(FastRandom))]
276 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "get_Right", ReturnType = typeof(int))]
277 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "get_Bottom", ReturnType = typeof(int))]
278 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldUtils), Member = "TileFrame", MemberParameters = new object[]
279 {
280 typeof(int),
281 typeof(int),
282 typeof(bool)
283 }, ReturnType = typeof(void))]
284 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "SquareWallFrame", MemberParameters = new object[]
285 {
286 typeof(int),
287 typeof(int),
288 typeof(bool)
289 }, ReturnType = typeof(void))]
290 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FastRandom), Member = "WithModifier", MemberParameters = new object[]
291 {
292 typeof(int),
293 typeof(int)
294 }, ReturnType = typeof(FastRandom))]
295 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(FastRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
296 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
297 {
298 typeof(int),
299 typeof(int)
300 }, ReturnType = typeof(Tile))]
301 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "active", ReturnType = typeof(bool))]
302 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "PlaceUncheckedStalactite", MemberParameters = new object[]
303 {
304 typeof(int),
305 typeof(int),
306 typeof(bool),
307 typeof(int),
308 typeof(bool)
309 }, ReturnType = typeof(void))]
310 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "SmoothSlope", MemberParameters = new object[]
311 {
312 typeof(int),
313 typeof(int),
314 typeof(bool),
315 typeof(bool)
316 }, ReturnType = typeof(void))]
317 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 14)]
319 {
320 throw null;
321 }
322
323 [global::Cpp2ILInjected.Token(Token = "0x6004612")]
324 [global::Cpp2ILInjected.Address(RVA = "0x7CA3EC", Offset = "0x7CA3EC", Length = "0x90")]
325 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
326 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(MicroBiome), Member = ".ctor", ReturnType = typeof(void))]
327 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
329 {
330 throw null;
331 }
332
333 // Note: this type is marked as 'beforefieldinit'.
334 [global::Cpp2ILInjected.Token(Token = "0x6004613")]
335 [global::Cpp2ILInjected.Address(RVA = "0x7CA47C", Offset = "0x7CA47C", Length = "0x208")]
336 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
337 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2D), Member = ".ctor", MemberParameters = new object[]
338 {
339 typeof(double),
340 typeof(double)
341 }, ReturnType = typeof(void))]
342 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2D), Member = "Normalize", MemberParameters = new object[] { typeof(Vector2D) }, ReturnType = typeof(Vector2D))]
343 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
345 {
346 throw null;
347 }
348
349 [global::Cpp2ILInjected.Token(Token = "0x400825B")]
350 private const int MAX_MAGMA_ITERATIONS = 300;
351
352 [global::Cpp2ILInjected.Token(Token = "0x400825C")]
353 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
355
356 [global::Cpp2ILInjected.Token(Token = "0x400825D")]
357 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
359
360 [global::Cpp2ILInjected.Token(Token = "0x400825E")]
361 private static Vector2D[] _normalisedVectors;
362
363 [global::Cpp2ILInjected.Token(Token = "0x20008EF")]
364 private struct Magma
365 {
366 [global::Cpp2ILInjected.Token(Token = "0x6004614")]
367 [global::Cpp2ILInjected.Address(RVA = "0x7CA684", Offset = "0x7CA684", Length = "0x10")]
368 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
369 private Magma(double pressure, double resistance, bool active)
370 {
371 throw null;
372 }
373
374 [global::Cpp2ILInjected.Token(Token = "0x6004615")]
375 [global::Cpp2ILInjected.Address(RVA = "0x7CA1DC", Offset = "0x7CA1DC", Length = "0x14")]
376 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
378 {
379 throw null;
380 }
381
382 [global::Cpp2ILInjected.Token(Token = "0x6004616")]
383 [global::Cpp2ILInjected.Address(RVA = "0x7CA1F0", Offset = "0x7CA1F0", Length = "0x10")]
384 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
385 public static GraniteBiome.Magma CreateFlow(double pressure, double resistance = 0.0)
386 {
387 throw null;
388 }
389
390 [global::Cpp2ILInjected.Token(Token = "0x6004617")]
391 [global::Cpp2ILInjected.Address(RVA = "0x7CA1CC", Offset = "0x7CA1CC", Length = "0x10")]
392 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
393 public static GraniteBiome.Magma CreateEmpty(double resistance = 0.0)
394 {
395 throw null;
396 }
397
398 [global::Cpp2ILInjected.Token(Token = "0x400825F")]
399 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
400 public readonly double Pressure;
401
402 [global::Cpp2ILInjected.Token(Token = "0x4008260")]
403 [global::Cpp2ILInjected.FieldOffset(Offset = "0x8")]
404 public readonly double Resistance;
405
406 [global::Cpp2ILInjected.Token(Token = "0x4008261")]
407 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
408 public readonly bool IsActive;
409 }
410 }
411}
class f__AnonymousType0<< Count > j__TPar
override bool Place(Point origin, StructureMap structures)
static bool CanPlace(Point origin, StructureMap structures)
void CleanupTiles(Point tileOrigin, Rectangle magmaMapArea)
void SimulatePressure(out Rectangle effectedMapArea)
void PlaceGranite(Point tileOrigin, Rectangle magmaMapArea)
void PlaceDecorations(Point tileOrigin, Rectangle magmaMapArea)
static GraniteBiome.Magma CreateFlow(double pressure, double resistance=0.0)
Magma(double pressure, double resistance, bool active)
static GraniteBiome.Magma CreateEmpty(double resistance=0.0)