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
Camera.cs
Go to the documentation of this file.
1using System;
11
13{
14 [global::Cpp2ILInjected.Token(Token = "0x2000731")]
15 public class Camera
16 {
17 [global::Cpp2ILInjected.Token(Token = "0x1700076C")]
19 {
20 [global::Cpp2ILInjected.Token(Token = "0x6003CEA")]
21 [global::Cpp2ILInjected.Address(RVA = "0x1498A24", Offset = "0x1498A24", Length = "0x50")]
22 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "GetAreaToLight", MemberParameters = new object[]
23 {
24 typeof(ref int),
25 typeof(ref int),
26 typeof(ref int),
27 typeof(ref int)
28 }, ReturnType = typeof(void))]
29 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Camera), Member = "get_Center", ReturnType = typeof(Vector2))]
30 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyPlayerRenderer), Member = "DrawPlayerStoned", MemberParameters = new object[]
31 {
35 }, ReturnType = typeof(void))]
36 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyPlayerRenderer), Member = "DrawGhost", MemberParameters = new object[]
37 {
41 typeof(float)
42 }, ReturnType = typeof(void))]
43 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.GameContent.Skies.AmbientSky.SkyEntity", Member = "CommonDraw", MemberParameters = new object[]
44 {
46 typeof(float),
47 typeof(float),
48 typeof(float)
49 }, ReturnType = typeof(void))]
50 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.GameContent.Skies.AmbientSky.SkyEntity", Member = "Helper_GetOpacityWithAccountingForOceanWaterLine", ReturnType = typeof(float))]
51 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "PreparePaintForTilesOnScreen", ReturnType = typeof(void))]
52 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawLiquidBehindTiles", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
53 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "Draw", MemberParameters = new object[]
54 {
55 typeof(bool),
56 typeof(bool),
57 typeof(bool),
58 typeof(int)
59 }, ReturnType = typeof(void))]
60 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "EnsureWindGridSize", ReturnType = typeof(void))]
61 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawTrees", ReturnType = typeof(void))]
62 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawGrass", ReturnType = typeof(void))]
63 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawAnyDirectionalGrass", ReturnType = typeof(void))]
64 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawMultiTileGrass", ReturnType = typeof(void))]
65 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawMultiTileVines", ReturnType = typeof(void))]
66 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawVines", ReturnType = typeof(void))]
67 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "DrawReverseVines", ReturnType = typeof(void))]
68 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(FancyGolfPredictionLine), Member = "Draw", MemberParameters = new object[]
69 {
72 typeof(float)
73 }, ReturnType = typeof(void))]
74 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 22)]
75 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenPosition", ReturnType = typeof(Vector2))]
76 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
77 get
78 {
79 throw null;
80 }
81 }
82
83 [global::Cpp2ILInjected.Token(Token = "0x1700076D")]
84 public Vector2 UnscaledSize
85 {
86 [global::Cpp2ILInjected.Token(Token = "0x6003CEB")]
87 [global::Cpp2ILInjected.Address(RVA = "0x1498A74", Offset = "0x1498A74", Length = "0x7C")]
88 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
89 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DrawInterface_GolfBallIndicator", ReturnType = typeof(void))]
90 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DrawCapture", MemberParameters = new object[]
91 {
94 }, ReturnType = typeof(void))]
95 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DoDraw", MemberParameters = new object[] { typeof(GameTime) }, ReturnType = typeof(void))]
96 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "GetAreaToLight", MemberParameters = new object[]
97 {
98 typeof(ref int),
99 typeof(ref int),
100 typeof(ref int),
101 typeof(ref int)
102 }, ReturnType = typeof(void))]
103 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Camera), Member = "get_Center", ReturnType = typeof(Vector2))]
104 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyLighting), Member = "Rebuild", ReturnType = typeof(void))]
105 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyLighting), Member = "ProcessArea", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(void))]
106 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WindGrid), Member = "ScanPlayer", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
107 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 12)]
108 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenWidth", ReturnType = typeof(int))]
109 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenHeight", ReturnType = typeof(int))]
110 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
111 {
112 typeof(float),
113 typeof(float)
114 }, ReturnType = typeof(void))]
115 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
116 get
117 {
118 throw null;
119 }
120 }
121
122 [global::Cpp2ILInjected.Token(Token = "0x1700076E")]
123 public Vector2 ScaledPosition
124 {
125 [global::Cpp2ILInjected.Token(Token = "0x6003CEC")]
126 [global::Cpp2ILInjected.Address(RVA = "0x1498AF0", Offset = "0x1498AF0", Length = "0x50")]
127 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "snowing", ReturnType = typeof(void))]
128 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DrawProj", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
129 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DrawBackground", ReturnType = typeof(void))]
130 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "OldDrawBackground", ReturnType = typeof(void))]
131 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "GetAreaToLight", MemberParameters = new object[]
132 {
133 typeof(ref int),
134 typeof(ref int),
135 typeof(ref int),
136 typeof(ref int)
137 }, ReturnType = typeof(void))]
138 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "PreparePaintForTilesOnScreen", ReturnType = typeof(void))]
139 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TileDrawing), Member = "Draw", MemberParameters = new object[]
140 {
141 typeof(bool),
142 typeof(bool),
143 typeof(bool),
144 typeof(int)
145 }, ReturnType = typeof(void))]
146 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 8)]
147 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenPosition", ReturnType = typeof(Vector2))]
148 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
149 get
150 {
151 throw null;
152 }
153 }
154
155 [global::Cpp2ILInjected.Token(Token = "0x1700076F")]
156 public Vector2 ScaledSize
157 {
158 [global::Cpp2ILInjected.Token(Token = "0x6003CED")]
159 [global::Cpp2ILInjected.Address(RVA = "0x1498B40", Offset = "0x1498B40", Length = "0x7C")]
160 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
161 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "snowing", ReturnType = typeof(void))]
162 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DrawProj", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
163 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "GetAreaToLight", MemberParameters = new object[]
164 {
165 typeof(ref int),
166 typeof(ref int),
167 typeof(ref int),
168 typeof(ref int)
169 }, ReturnType = typeof(void))]
170 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
171 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenWidth", ReturnType = typeof(int))]
172 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenHeight", ReturnType = typeof(int))]
173 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
174 {
175 typeof(float),
176 typeof(float)
177 }, ReturnType = typeof(void))]
178 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
179 get
180 {
181 throw null;
182 }
183 }
184
185 [global::Cpp2ILInjected.Token(Token = "0x17000770")]
186 public RasterizerState Rasterizer
187 {
188 [global::Cpp2ILInjected.Token(Token = "0x6003CEE")]
189 [global::Cpp2ILInjected.Address(RVA = "0x1498BBC", Offset = "0x1498BBC", Length = "0x58")]
190 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
191 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
192 get
193 {
194 throw null;
195 }
196 }
197
198 [global::Cpp2ILInjected.Token(Token = "0x17000771")]
199 public SamplerState Sampler
200 {
201 [global::Cpp2ILInjected.Token(Token = "0x6003CEF")]
202 [global::Cpp2ILInjected.Address(RVA = "0x1498C14", Offset = "0x1498C14", Length = "0x50")]
203 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LegacyPlayerRenderer), Member = "DrawPlayerFull", MemberParameters = new object[]
204 {
205 typeof(Camera),
207 }, ReturnType = typeof(void))]
208 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(ReturnGatePlayerRenderer), Member = "DrawReturnGateInWorld", MemberParameters = new object[]
209 {
210 typeof(Camera),
212 }, ReturnType = typeof(void))]
213 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
214 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_DefaultSamplerState", ReturnType = typeof(SamplerState))]
215 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
216 get
217 {
218 throw null;
219 }
220 }
221
222 [global::Cpp2ILInjected.Token(Token = "0x17000772")]
223 public SpriteViewMatrix GameViewMatrix
224 {
225 [global::Cpp2ILInjected.Token(Token = "0x6003CF0")]
226 [global::Cpp2ILInjected.Address(RVA = "0x1498C64", Offset = "0x1498C64", Length = "0x58")]
227 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
228 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
229 get
230 {
231 throw null;
232 }
233 }
234
235 [global::Cpp2ILInjected.Token(Token = "0x17000773")]
237 {
238 [global::Cpp2ILInjected.Token(Token = "0x6003CF1")]
239 [global::Cpp2ILInjected.Address(RVA = "0x1498CBC", Offset = "0x1498CBC", Length = "0x58")]
240 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
241 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
242 get
243 {
244 throw null;
245 }
246 }
247
248 [global::Cpp2ILInjected.Token(Token = "0x17000774")]
249 public Vector2 Center
250 {
251 [global::Cpp2ILInjected.Token(Token = "0x6003CF2")]
252 [global::Cpp2ILInjected.Address(RVA = "0x1498D14", Offset = "0x1498D14", Length = "0x9C")]
253 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.GameContent.Skies.AmbientSky.SkyEntity", Member = "SetPositionInWorldBasedOnScreenSpace", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(void))]
254 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = "Terraria.GameContent.Skies.AmbientSky.SkyEntity", Member = "GetDrawPositionByDepth", ReturnType = typeof(Vector2))]
255 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(WindGrid), Member = "ScanPlayer", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
256 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 5)]
257 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Camera), Member = "get_UnscaledPosition", ReturnType = typeof(Vector2))]
258 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Camera), Member = "get_UnscaledSize", ReturnType = typeof(Vector2))]
259 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
260 {
262 typeof(float)
263 }, ReturnType = typeof(Vector2))]
264 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
265 {
268 }, ReturnType = typeof(Vector2))]
269 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
270 get
271 {
272 throw null;
273 }
274 }
275
276 [global::Cpp2ILInjected.Token(Token = "0x6003CF3")]
277 [global::Cpp2ILInjected.Address(RVA = "0x1498DB0", Offset = "0x1498DB0", Length = "0x8")]
278 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(LocalUserGameState), Member = ".ctor", ReturnType = typeof(void))]
279 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
280 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
281 public Camera()
282 {
283 throw null;
284 }
285 }
286}
class f__AnonymousType0<< Count > j__TPar