terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
Plane.cs
Go to the documentation of this file.
1using System;
5
6namespace UnityEngine
7{
8 // Token: 0x02000085 RID: 133
10 public struct Plane : IFormattable
11 {
12 // Token: 0x1700007A RID: 122
13 // (get) Token: 0x0600023B RID: 571 RVA: 0x0000530C File Offset: 0x0000350C
15 {
16 get
17 {
18 Vector3 normal = this.m_Normal;
19 Vector3 vector;
20 return vector;
21 }
22 }
23
24 // Token: 0x0600023C RID: 572 RVA: 0x00005324 File Offset: 0x00003524
26 {
27 }
28
29 // Token: 0x0600023D RID: 573 RVA: 0x00005334 File Offset: 0x00003534
30 public bool Raycast(Ray ray, [Out] float enter)
31 {
32 /*
33An exception occurred when decompiling this method (0600023D)
34
35ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.Plane::Raycast(UnityEngine.Ray,System.Single)
36
37 ---> System.Exception: Basic block has to end with unconditional control flow.
38{
39 Block_0:
40 stloc:float32(var_0_0B, ldfld:float32(Vector3::x, ldfld:Vector3[exp:valuetype UnityEngine.Vector3&](Ray::m_Direction, ldloc:Ray[exp:valuetype UnityEngine.Ray&](ray))))
41 stloc:float32(var_1_17, ldfld:float32(Vector3::y, ldfld:Vector3[exp:valuetype UnityEngine.Vector3&](Ray::m_Direction, ldloc:Ray[exp:valuetype UnityEngine.Ray&](ray))))
42 stloc:float32(var_2_23, ldfld:float32(Vector3::z, ldfld:Vector3[exp:valuetype UnityEngine.Vector3&](Ray::m_Direction, ldloc:Ray[exp:valuetype UnityEngine.Ray&](ray))))
43 stloc:Vector3(var_3_2A, ldfld:Vector3(Plane::m_Normal, ldloc:valuetype UnityEngine.Plane&(this)))
44 stloc:float32(var_4_31, ldfld:float32(Plane::m_Distance, ldloc:valuetype UnityEngine.Plane&(this)))
45 stloc:Vector3(var_5_39, ldfld:Vector3(Ray::m_Origin, ldloc:Ray[exp:valuetype UnityEngine.Ray&](ray)))
46}
47
48 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
49 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
50 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
51 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
52 --- End of inner exception stack trace ---
53 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
54 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
55*/;
56 }
57
58 // Token: 0x0600023E RID: 574 RVA: 0x00005380 File Offset: 0x00003580
59 public override string ToString()
60 {
61 string text;
62 return text;
63 }
64
65 // Token: 0x0600023F RID: 575 RVA: 0x00005390 File Offset: 0x00003590
67 {
68 bool flag = string.IsNullOrEmpty(format);
69 if (formatProvider == null)
70 {
72 }
73 string text;
74 string text2;
75 if ((text == null || text != null) && (text2 == null || text2 != null))
76 {
77 string text3;
78 return text3;
79 }
81 }
82
83 // Token: 0x04000317 RID: 791
85
86 // Token: 0x04000318 RID: 792
87 private float m_Distance;
88 }
89}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
override string ToString()
Definition Plane.cs:59
bool Raycast(Ray ray, [Out] float enter)
Definition Plane.cs:30
Vector3 m_Normal
Definition Plane.cs:84
Plane(Vector3 inNormal, Vector3 inPoint)
Definition Plane.cs:25
string ToString(string format, IFormatProvider formatProvider)
Definition Plane.cs:66
Vector3 normal
Definition Plane.cs:15
float m_Distance
Definition Plane.cs:87