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
StrayMethods.cs
Go to the documentation of this file.
1using System;
7
8namespace Terraria
9{
10 [global::Cpp2ILInjected.Token(Token = "0x200045D")]
11 public class StrayMethods
12 {
13 [global::Cpp2ILInjected.Token(Token = "0x6002A3A")]
14 [global::Cpp2ILInjected.Address(RVA = "0x1170EBC", Offset = "0x1170EBC", Length = "0x278")]
15 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
16 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
17 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "InWorld", MemberParameters = new object[]
18 {
19 typeof(int),
20 typeof(int),
21 typeof(int)
22 }, ReturnType = typeof(bool))]
23 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
24 {
25 typeof(int),
26 typeof(int)
27 }, ReturnType = typeof(Tile))]
28 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_sTileHeader", ReturnType = typeof(short))]
29 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
30 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "SolidTileAllowBottomSlope", MemberParameters = new object[]
31 {
32 typeof(int),
33 typeof(int)
34 }, ReturnType = typeof(bool))]
35 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 8)]
36 public static bool CountSandHorizontally(int i, int j, bool[] fittingTypes, int requiredTotalSpread = 4, int spreadInEachAxis = 5)
37 {
38 throw null;
39 }
40
41 [global::Cpp2ILInjected.Token(Token = "0x6002A3B")]
42 [global::Cpp2ILInjected.Address(RVA = "0x1171134", Offset = "0x1171134", Length = "0x10C")]
43 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
44 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "AI", ReturnType = typeof(void))]
45 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
46 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "ToTileCoordinates", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(Point))]
47 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Collision), Member = "ExpandVertically", MemberParameters = new object[]
48 {
49 typeof(int),
50 typeof(int),
51 typeof(ref int),
52 typeof(ref int),
53 typeof(int),
54 typeof(int)
55 }, ReturnType = typeof(void))]
56 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
57 public static bool CanSpawnSandstormHostile(Vector2 position, int expandUp, int expandDown)
58 {
59 throw null;
60 }
61
62 [global::Cpp2ILInjected.Token(Token = "0x6002A3C")]
63 [global::Cpp2ILInjected.Address(RVA = "0x1171240", Offset = "0x1171240", Length = "0x10C")]
64 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
65 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Player), Member = "CommandForbiddenStorm", ReturnType = typeof(void))]
66 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
67 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "ToTileCoordinates", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(Point))]
68 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Collision), Member = "ExpandVertically", MemberParameters = new object[]
69 {
70 typeof(int),
71 typeof(int),
72 typeof(ref int),
73 typeof(ref int),
74 typeof(int),
75 typeof(int)
76 }, ReturnType = typeof(void))]
77 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
78 public static bool CanSpawnSandstormFriendly(Vector2 position, int expandUp, int expandDown)
79 {
80 throw null;
81 }
82
83 [global::Cpp2ILInjected.Token(Token = "0x6002A3D")]
84 [global::Cpp2ILInjected.Address(RVA = "0x117134C", Offset = "0x117134C", Length = "0x178")]
85 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
86 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "AI", ReturnType = typeof(void))]
87 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(DD2Event), Member = "WouldFailSpawningHere", MemberParameters = new object[]
88 {
89 typeof(int),
90 typeof(int)
91 }, ReturnType = typeof(bool))]
92 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
93 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "ToTileCoordinates", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(Point))]
94 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Collision), Member = "ExpandVertically", MemberParameters = new object[]
95 {
96 typeof(int),
97 typeof(int),
98 typeof(ref int),
99 typeof(ref int),
100 typeof(int),
101 typeof(int)
102 }, ReturnType = typeof(void))]
103 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(StrayMethods), Member = "SendWalker", MemberParameters = new object[]
104 {
105 typeof(Point),
106 typeof(int),
107 typeof(int),
108 typeof(ref int),
110 typeof(int),
111 typeof(bool)
112 }, ReturnType = typeof(void))]
113 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
115 {
116 throw null;
117 }
118
119 [global::Cpp2ILInjected.Token(Token = "0x6002A3E")]
120 [global::Cpp2ILInjected.Address(RVA = "0x11714C4", Offset = "0x11714C4", Length = "0x42C")]
121 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
122 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(StrayMethods), Member = "CheckArenaScore", MemberParameters = new object[]
123 {
127 typeof(int),
128 typeof(int)
129 }, ReturnType = typeof(void))]
130 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
131 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "SolidTile3", MemberParameters = new object[]
132 {
133 typeof(int),
134 typeof(int)
135 }, ReturnType = typeof(bool))]
136 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Collision), Member = "ExpandVertically", MemberParameters = new object[]
137 {
138 typeof(int),
139 typeof(int),
140 typeof(ref int),
141 typeof(ref int),
142 typeof(int),
143 typeof(int)
144 }, ReturnType = typeof(void))]
145 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
146 {
147 typeof(float),
148 typeof(float)
149 }, ReturnType = typeof(void))]
150 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dust), Member = "QuickBox", MemberParameters = new object[]
151 {
154 typeof(int),
155 typeof(Color),
156 typeof(Action<Dust>)
157 }, ReturnType = typeof(void))]
158 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dust), Member = "QuickDust", MemberParameters = new object[]
159 {
160 typeof(Point),
162 }, ReturnType = typeof(Dust))]
163 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 16)]
164 public static void SendWalker(Point startFloorPosition, int height, int direction, out int distanceCoveredInTiles, out Point lastIteratedFloorSpot, int maxDistance = 100, bool showDebug = false)
165 {
166 throw null;
167 }
168
169 [global::Cpp2ILInjected.Token(Token = "0x6002A3F")]
170 [global::Cpp2ILInjected.Address(RVA = "0x11718F0", Offset = "0x11718F0", Length = "0x8")]
171 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
172 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
174 {
175 throw null;
176 }
177 }
178}
class f__AnonymousType0<< Count > j__TPar
static bool CanSpawnSandstormFriendly(Vector2 position, int expandUp, int expandDown)
static bool CanSpawnSandstormHostile(Vector2 position, int expandUp, int expandDown)
static void SendWalker(Point startFloorPosition, int height, int direction, out int distanceCoveredInTiles, out Point lastIteratedFloorSpot, int maxDistance=100, bool showDebug=false)
static void CheckArenaScore(Vector2 arenaCenter, out Point xLeftEnd, out Point xRightEnd, int walkerWidthInTiles=5, int walkerHeightInTiles=10)
static bool CountSandHorizontally(int i, int j, bool[] fittingTypes, int requiredTotalSpread=4, int spreadInEachAxis=5)