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
BallCollision.cs
Go to the documentation of this file.
1using System;
8
10{
11 [global::Cpp2ILInjected.Token(Token = "0x200053C")]
12 public static class BallCollision
13 {
14 [global::Cpp2ILInjected.Token(Token = "0x6003256")]
15 [global::Cpp2ILInjected.Address(RVA = "0x132C7E0", Offset = "0x132C7E0", Length = "0x6D4")]
16 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
17 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GolfHelper), Member = "StepGolfBall", MemberParameters = new object[]
18 {
20 typeof(ref float)
21 }, ReturnType = typeof(BallStepResult))]
22 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
23 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Entity), Member = "get_Size", ReturnType = typeof(Vector2))]
24 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
25 {
27 typeof(float)
28 }, ReturnType = typeof(Vector2))]
29 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "Length", ReturnType = typeof(float))]
30 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "Normalize", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(Vector2))]
31 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
32 {
33 typeof(float),
35 }, ReturnType = typeof(Vector2))]
36 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Math), Member = "Max", MemberParameters = new object[]
37 {
38 typeof(int),
39 typeof(int)
40 }, ReturnType = typeof(int))]
41 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
42 {
45 }, ReturnType = typeof(Vector2))]
46 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BallCollision), Member = "CheckForPassThrough", MemberParameters = new object[]
47 {
51 }, ReturnType = typeof(bool))]
52 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
53 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BallCollision), Member = "IsBallInWorld", MemberParameters = new object[]
54 {
57 }, ReturnType = typeof(bool))]
58 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BallCollision), Member = "GetClosestEdgeToCircle", MemberParameters = new object[]
59 {
65 }, ReturnType = typeof(bool))]
66 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Subtraction", MemberParameters = new object[]
67 {
70 }, ReturnType = typeof(Vector2))]
71 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "Reflect", MemberParameters = new object[]
72 {
75 }, ReturnType = typeof(Vector2))]
76 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Division", MemberParameters = new object[]
77 {
79 typeof(float)
80 }, ReturnType = typeof(Vector2))]
81 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 17)]
83 {
84 throw null;
85 }
86
87 [global::Cpp2ILInjected.Token(Token = "0x6003257")]
88 [global::Cpp2ILInjected.Address(RVA = "0x132CEB4", Offset = "0x132CEB4", Length = "0x19C")]
89 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
90 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BallCollision), Member = "Step", MemberParameters = new object[]
91 {
94 typeof(ref float),
96 }, ReturnType = typeof(BallStepResult))]
97 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
98 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "ToTileCoordinates", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(Point))]
99 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
100 {
101 typeof(int),
102 typeof(int)
103 }, ReturnType = typeof(Tile))]
104 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "nactive", ReturnType = typeof(bool))]
105 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BallCollision), Member = "IsPositionInsideTile", MemberParameters = new object[]
106 {
108 typeof(Point),
109 typeof(Tile)
110 }, ReturnType = typeof(bool))]
111 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_liquid", ReturnType = typeof(byte))]
112 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "liquidType", ReturnType = typeof(byte))]
113 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
115 {
116 throw null;
117 }
118
119 [global::Cpp2ILInjected.Token(Token = "0x6003258")]
120 [global::Cpp2ILInjected.Address(RVA = "0x132D4B0", Offset = "0x132D4B0", Length = "0x164")]
121 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
122 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BallCollision), Member = "CheckForPassThrough", MemberParameters = new object[]
123 {
127 }, ReturnType = typeof(bool))]
128 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
129 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "slope", ReturnType = typeof(byte))]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "halfBrick", ReturnType = typeof(bool))]
131 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Division", MemberParameters = new object[]
132 {
134 typeof(float)
135 }, ReturnType = typeof(Vector2))]
136 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
137 {
138 typeof(float),
139 typeof(float)
140 }, ReturnType = typeof(void))]
141 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Subtraction", MemberParameters = new object[]
142 {
145 }, ReturnType = typeof(Vector2))]
146 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
147 private static bool IsPositionInsideTile(Vector2 position, Point tileCoordinates, Tile tile)
148 {
149 throw null;
150 }
151
152 [global::Cpp2ILInjected.Token(Token = "0x6003259")]
153 [global::Cpp2ILInjected.Address(RVA = "0x132D064", Offset = "0x132D064", Length = "0xF8")]
154 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
155 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BallCollision), Member = "Step", MemberParameters = new object[]
156 {
158 typeof(Entity),
159 typeof(ref float),
161 }, ReturnType = typeof(BallStepResult))]
162 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
163 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
164 private static bool IsBallInWorld(Vector2 position, Vector2 size)
165 {
166 throw null;
167 }
168
169 [global::Cpp2ILInjected.Token(Token = "0x600325A")]
170 [global::Cpp2ILInjected.Address(RVA = "0x132D164", Offset = "0x132D164", Length = "0x324")]
171 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
172 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BallCollision), Member = "Step", MemberParameters = new object[]
173 {
175 typeof(Entity),
176 typeof(ref float),
178 }, ReturnType = typeof(BallStepResult))]
179 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
180 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BallCollision), Member = "GetTileBounds", MemberParameters = new object[]
181 {
184 }, ReturnType = typeof(Rectangle))]
185 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
186 {
188 typeof(float)
189 }, ReturnType = typeof(Vector2))]
190 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
191 {
194 }, ReturnType = typeof(Vector2))]
195 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "get_Right", ReturnType = typeof(int))]
196 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "get_Bottom", ReturnType = typeof(int))]
197 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BallCollision), Member = "GetCollisionPointForTile", MemberParameters = new object[]
198 {
199 typeof(BallCollision.TileEdges),
200 typeof(int),
201 typeof(int),
204 typeof(ref float)
205 }, ReturnType = typeof(bool))]
206 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Subtraction", MemberParameters = new object[]
207 {
210 }, ReturnType = typeof(Vector2))]
211 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "Dot", MemberParameters = new object[]
212 {
215 }, ReturnType = typeof(float))]
216 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
217 {
218 typeof(int),
219 typeof(int)
220 }, ReturnType = typeof(Tile))]
221 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
223 {
224 throw null;
225 }
226
227 [global::Cpp2ILInjected.Token(Token = "0x600325B")]
228 [global::Cpp2ILInjected.Address(RVA = "0x132D718", Offset = "0x132D718", Length = "0x3A4")]
229 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
230 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BallCollision), Member = "GetClosestEdgeToCircle", MemberParameters = new object[]
231 {
237 }, ReturnType = typeof(bool))]
238 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
239 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
240 {
241 typeof(int),
242 typeof(int)
243 }, ReturnType = typeof(Tile))]
244 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "nactive", ReturnType = typeof(bool))]
245 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
246 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
247 {
248 typeof(float),
249 typeof(float)
250 }, ReturnType = typeof(void))]
251 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BallCollision), Member = "GetSlopeEdge", MemberParameters = new object[]
252 {
253 typeof(ref BallCollision.TileEdges),
254 typeof(Tile),
257 }, ReturnType = typeof(bool))]
258 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BallCollision), Member = "ClosestPointOnLineSegment", MemberParameters = new object[]
259 {
262 }, ReturnType = typeof(Vector2))]
263 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "DistanceSquared", MemberParameters = new object[]
264 {
267 }, ReturnType = typeof(float))]
268 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BallCollision), Member = "GetTopOrBottomEdge", MemberParameters = new object[]
269 {
270 typeof(BallCollision.TileEdges),
271 typeof(int),
272 typeof(int),
275 }, ReturnType = typeof(bool))]
276 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BallCollision), Member = "GetLeftOrRightEdge", MemberParameters = new object[]
277 {
278 typeof(BallCollision.TileEdges),
279 typeof(int),
280 typeof(int),
283 }, ReturnType = typeof(bool))]
284 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_frameY", ReturnType = typeof(short))]
285 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
287 {
288 throw null;
289 }
290
291 [global::Cpp2ILInjected.Token(Token = "0x600325C")]
292 [global::Cpp2ILInjected.Address(RVA = "0x132DABC", Offset = "0x132DABC", Length = "0x144")]
293 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
294 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BallCollision), Member = "GetCollisionPointForTile", MemberParameters = new object[]
295 {
297 typeof(int),
298 typeof(int),
301 typeof(ref float)
302 }, ReturnType = typeof(bool))]
303 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
304 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "slope", ReturnType = typeof(byte))]
305 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
306 {
307 typeof(float),
308 typeof(float)
309 }, ReturnType = typeof(void))]
310 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
312 {
313 throw null;
314 }
315
316 [global::Cpp2ILInjected.Token(Token = "0x600325D")]
317 [global::Cpp2ILInjected.Address(RVA = "0x132DD64", Offset = "0x132DD64", Length = "0x26C")]
318 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
319 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BallCollision), Member = "GetCollisionPointForTile", MemberParameters = new object[]
320 {
322 typeof(int),
323 typeof(int),
326 typeof(ref float)
327 }, ReturnType = typeof(bool))]
328 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
329 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
330 {
331 typeof(int),
332 typeof(int)
333 }, ReturnType = typeof(Tile))]
334 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BallCollision), Member = "IsNeighborSolid", MemberParameters = new object[] { typeof(Tile) }, ReturnType = typeof(bool))]
335 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "slope", ReturnType = typeof(byte))]
336 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "halfBrick", ReturnType = typeof(bool))]
337 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
338 {
339 typeof(float),
340 typeof(float)
341 }, ReturnType = typeof(void))]
342 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
343 private static bool GetTopOrBottomEdge(BallCollision.TileEdges edgesToTest, int x, int y, Vector2 tilePosition, ref LineSegment edge)
344 {
345 throw null;
346 }
347
348 [global::Cpp2ILInjected.Token(Token = "0x600325E")]
349 [global::Cpp2ILInjected.Address(RVA = "0x132DFD0", Offset = "0x132DFD0", Length = "0x2A4")]
350 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
351 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BallCollision), Member = "GetCollisionPointForTile", MemberParameters = new object[]
352 {
354 typeof(int),
355 typeof(int),
358 typeof(ref float)
359 }, ReturnType = typeof(bool))]
360 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
361 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TileData), Member = "get_Item", MemberParameters = new object[]
362 {
363 typeof(int),
364 typeof(int)
365 }, ReturnType = typeof(Tile))]
366 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(BallCollision), Member = "IsNeighborSolid", MemberParameters = new object[] { typeof(Tile) }, ReturnType = typeof(bool))]
367 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "slope", ReturnType = typeof(byte))]
368 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
369 {
370 typeof(float),
371 typeof(float)
372 }, ReturnType = typeof(void))]
373 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "halfBrick", ReturnType = typeof(bool))]
374 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
375 private static bool GetLeftOrRightEdge(BallCollision.TileEdges edgesToTest, int x, int y, Vector2 tilePosition, ref LineSegment edge)
376 {
377 throw null;
378 }
379
380 [global::Cpp2ILInjected.Token(Token = "0x600325F")]
381 [global::Cpp2ILInjected.Address(RVA = "0x132D614", Offset = "0x132D614", Length = "0x104")]
382 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
383 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BallCollision), Member = "GetClosestEdgeToCircle", MemberParameters = new object[]
384 {
390 }, ReturnType = typeof(bool))]
391 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
392 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = ".ctor", MemberParameters = new object[]
393 {
394 typeof(int),
395 typeof(int),
396 typeof(int),
397 typeof(int)
398 }, ReturnType = typeof(void))]
399 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
400 private static Rectangle GetTileBounds(Vector2 position, Vector2 size)
401 {
402 throw null;
403 }
404
405 [global::Cpp2ILInjected.Token(Token = "0x6003260")]
406 [global::Cpp2ILInjected.Address(RVA = "0x132E274", Offset = "0x132E274", Length = "0xC4")]
407 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
408 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BallCollision), Member = "GetTopOrBottomEdge", MemberParameters = new object[]
409 {
411 typeof(int),
412 typeof(int),
415 }, ReturnType = typeof(bool))]
416 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BallCollision), Member = "GetLeftOrRightEdge", MemberParameters = new object[]
417 {
418 typeof(BallCollision.TileEdges),
419 typeof(int),
420 typeof(int),
423 }, ReturnType = typeof(bool))]
424 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
425 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "nactive", ReturnType = typeof(bool))]
426 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Tile), Member = "get_type", ReturnType = typeof(ushort))]
427 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
428 private static bool IsNeighborSolid(Tile tile)
429 {
430 throw null;
431 }
432
433 [global::Cpp2ILInjected.Token(Token = "0x6003261")]
434 [global::Cpp2ILInjected.Address(RVA = "0x132DC00", Offset = "0x132DC00", Length = "0x164")]
435 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
436 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BallCollision), Member = "GetCollisionPointForTile", MemberParameters = new object[]
437 {
439 typeof(int),
440 typeof(int),
443 typeof(ref float)
444 }, ReturnType = typeof(bool))]
445 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
446 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Subtraction", MemberParameters = new object[]
447 {
450 }, ReturnType = typeof(Vector2))]
451 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "LengthSquared", ReturnType = typeof(float))]
452 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "Dot", MemberParameters = new object[]
453 {
456 }, ReturnType = typeof(float))]
457 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
458 {
460 typeof(float)
461 }, ReturnType = typeof(Vector2))]
462 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
463 {
466 }, ReturnType = typeof(Vector2))]
467 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
469 {
470 throw null;
471 }
472
473 [Conditional("UNITY_EDITOR")]
474 [Conditional("ENABLE_DEBUG")]
475 [global::Cpp2ILInjected.Token(Token = "0x6003262")]
476 [global::Cpp2ILInjected.Address(RVA = "0x132E338", Offset = "0x132E338", Length = "0x4")]
477 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
478 private static void DrawEdge(LineSegment edge)
479 {
480 throw null;
481 }
482
483 [Flags]
484 [global::Cpp2ILInjected.Token(Token = "0x200053D")]
485 private enum TileEdges : uint
486 {
487 [global::Cpp2ILInjected.Token(Token = "0x4003B85")]
488 None = 0U,
489 [global::Cpp2ILInjected.Token(Token = "0x4003B86")]
490 Top = 1U,
491 [global::Cpp2ILInjected.Token(Token = "0x4003B87")]
492 Bottom = 2U,
493 [global::Cpp2ILInjected.Token(Token = "0x4003B88")]
494 Left = 4U,
495 [global::Cpp2ILInjected.Token(Token = "0x4003B89")]
496 Right = 8U,
497 [global::Cpp2ILInjected.Token(Token = "0x4003B8A")]
498 TopLeftSlope = 16U,
499 [global::Cpp2ILInjected.Token(Token = "0x4003B8B")]
500 TopRightSlope = 32U,
501 [global::Cpp2ILInjected.Token(Token = "0x4003B8C")]
502 BottomLeftSlope = 64U,
503 [global::Cpp2ILInjected.Token(Token = "0x4003B8D")]
505 }
506 }
507}
class f__AnonymousType0<< Count > j__TPar
static Rectangle GetTileBounds(Vector2 position, Vector2 size)
static bool GetCollisionPointForTile(BallCollision.TileEdges edgesToTest, int x, int y, Vector2 center, ref Vector2 closestPointOut, ref float distanceSquaredOut)
static Vector2 ClosestPointOnLineSegment(Vector2 point, LineSegment lineSegment)
static bool IsBallInWorld(Vector2 position, Vector2 size)
static BallStepResult Step(PhysicsProperties physicsProperties, Entity entity, ref float entityAngularVelocity, IBallContactListener listener)
static bool IsNeighborSolid(Tile tile)
static bool CheckForPassThrough(Vector2 center, out BallPassThroughType type, out Tile contactTile)
static void DrawEdge(LineSegment edge)
static bool GetSlopeEdge(ref BallCollision.TileEdges edgesToTest, Tile tile, Vector2 tilePosition, ref LineSegment edge)
static bool GetClosestEdgeToCircle(Vector2 position, Vector2 size, Vector2 velocity, out Vector2 collisionPoint, out Tile collisionTile)
static bool IsPositionInsideTile(Vector2 position, Point tileCoordinates, Tile tile)
static bool GetTopOrBottomEdge(BallCollision.TileEdges edgesToTest, int x, int y, Vector2 tilePosition, ref LineSegment edge)
static bool GetLeftOrRightEdge(BallCollision.TileEdges edgesToTest, int x, int y, Vector2 tilePosition, ref LineSegment edge)