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
Bounds.cs
Go to the documentation of this file.
1using System;
5
6namespace UnityEngine
7{
8 // Token: 0x02000086 RID: 134
9 [NativeHeader("Runtime/Geometry/AABB.h")]
10 [NativeClass("AABB")]
11 [NativeType(Header = "Runtime/Geometry/AABB.h")]
12 [NativeHeader("Runtime/Geometry/Ray.h")]
13 [NativeHeader("Runtime/Geometry/Intersection.h")]
14 [RequiredByNativeCode(Optional = true, GenerateProxy = true)]
15 [NativeHeader("Runtime/Math/MathScripting.h")]
16 public struct Bounds : IEquatable<Bounds>, IFormattable
17 {
18 // Token: 0x06000240 RID: 576 RVA: 0x000053CC File Offset: 0x000035CC
20 {
21 }
22
23 // Token: 0x06000241 RID: 577 RVA: 0x000053DC File Offset: 0x000035DC
24 public override int GetHashCode()
25 {
26 float z = this.m_Extents.z;
27 int num;
28 return num;
29 }
30
31 // Token: 0x06000242 RID: 578 RVA: 0x000053F8 File Offset: 0x000035F8
32 public override bool Equals(object other)
33 {
34 /*
35An exception occurred when decompiling this method (06000242)
36
37ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.Bounds::Equals(System.Object)
38
39 ---> System.Exception: Basic block has to end with unconditional control flow.
40{
41 IL_0003:
42 stloc:float32(var_2_12, ldfld:float32(Vector3::x, ldfld:Vector3[exp:valuetype UnityEngine.Vector3&](Bounds::m_Extents, ldloc:valuetype UnityEngine.Bounds&(this))))
43 stloc:float32(var_3_1E, ldfld:float32(Vector3::y, ldfld:Vector3[exp:valuetype UnityEngine.Vector3&](Bounds::m_Extents, ldloc:valuetype UnityEngine.Bounds&(this))))
44 stloc:float32(var_4_2A, ldfld:float32(Vector3::z, ldfld:Vector3[exp:valuetype UnityEngine.Vector3&](Bounds::m_Extents, ldloc:valuetype UnityEngine.Bounds&(this))))
45}
46
47 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
48 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
49 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
50 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
51 --- End of inner exception stack trace ---
52 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
53 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
54*/;
55 }
56
57 // Token: 0x06000243 RID: 579 RVA: 0x00005430 File Offset: 0x00003630
58 public bool Equals(Bounds other)
59 {
60 /*
61An exception occurred when decompiling this method (06000243)
62
63ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.Bounds::Equals(UnityEngine.Bounds)
64
65 ---> System.Exception: Basic block has to end with unconditional control flow.
66{
67 Block_0:
68 stloc:float32(var_0_0B, ldfld:float32(Vector3::x, ldfld:Vector3[exp:valuetype UnityEngine.Vector3&](Bounds::m_Extents, ldloc:valuetype UnityEngine.Bounds&(this))))
69 stloc:float32(var_1_17, ldfld:float32(Vector3::y, ldfld:Vector3[exp:valuetype UnityEngine.Vector3&](Bounds::m_Extents, ldloc:valuetype UnityEngine.Bounds&(this))))
70 stloc:float32(var_2_23, ldfld:float32(Vector3::x, ldfld:Vector3[exp:valuetype UnityEngine.Vector3&](Bounds::m_Extents, ldloc:Bounds[exp:valuetype UnityEngine.Bounds&](other))))
71 stloc:float32(var_3_2F, ldfld:float32(Vector3::y, ldfld:Vector3[exp:valuetype UnityEngine.Vector3&](Bounds::m_Extents, ldloc:Bounds[exp:valuetype UnityEngine.Bounds&](other))))
72 stloc:float32(var_4_3B, ldfld:float32(Vector3::z, ldfld:Vector3[exp:valuetype UnityEngine.Vector3&](Bounds::m_Extents, ldloc:valuetype UnityEngine.Bounds&(this))))
73 stloc:float32(var_5_48, ldfld:float32(Vector3::z, ldfld:Vector3[exp:valuetype UnityEngine.Vector3&](Bounds::m_Extents, ldloc:Bounds[exp:valuetype UnityEngine.Bounds&](other))))
74}
75
76 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
77 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
78 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
79 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
80 --- End of inner exception stack trace ---
81 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
82 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
83*/;
84 }
85
86 // Token: 0x1700007B RID: 123
87 // (get) Token: 0x06000244 RID: 580 RVA: 0x0000548C File Offset: 0x0000368C
88 // (set) Token: 0x06000245 RID: 581 RVA: 0x000054A4 File Offset: 0x000036A4
90 {
91 get
92 {
93 Vector3 center = this.m_Center;
94 Vector3 vector;
95 return vector;
96 }
97 set
98 {
99 }
100 }
101
102 // Token: 0x1700007C RID: 124
103 // (get) Token: 0x06000246 RID: 582 RVA: 0x000054B4 File Offset: 0x000036B4
104 // (set) Token: 0x06000247 RID: 583 RVA: 0x000054E8 File Offset: 0x000036E8
106 {
107 get
108 {
109 float x = this.m_Extents.x;
110 float y = this.m_Extents.y;
111 float z = this.m_Extents.z;
112 Vector3 vector;
113 return vector;
114 }
115 set
116 {
117 }
118 }
119
120 // Token: 0x1700007D RID: 125
121 // (get) Token: 0x06000248 RID: 584 RVA: 0x000054F8 File Offset: 0x000036F8
122 // (set) Token: 0x06000249 RID: 585 RVA: 0x0000552C File Offset: 0x0000372C
124 {
125 get
126 {
127 float x = this.m_Extents.x;
128 float y = this.m_Extents.y;
129 float z = this.m_Extents.z;
130 Vector3 vector;
131 return vector;
132 }
133 set
134 {
135 }
136 }
137
138 // Token: 0x1700007E RID: 126
139 // (get) Token: 0x0600024A RID: 586 RVA: 0x0000553C File Offset: 0x0000373C
141 {
142 get
143 {
144 float z = this.m_Extents.z;
145 Vector3 vector;
146 return vector;
147 }
148 }
149
150 // Token: 0x1700007F RID: 127
151 // (get) Token: 0x0600024B RID: 587 RVA: 0x00005558 File Offset: 0x00003758
153 {
154 get
155 {
156 float z = this.m_Extents.z;
157 Vector3 vector;
158 return vector;
159 }
160 }
161
162 // Token: 0x0600024C RID: 588 RVA: 0x00005574 File Offset: 0x00003774
163 public static bool operator ==(Bounds lhs, Bounds rhs)
164 {
165 /*
166An exception occurred when decompiling this method (0600024C)
167
168ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.Bounds::op_Equality(UnityEngine.Bounds,UnityEngine.Bounds)
169
170 ---> System.Exception: Basic block has to end with unconditional control flow.
171{
172 Block_0:
173 stloc:float32(var_0_0B, ldfld:float32(Vector3::x, ldfld:Vector3[exp:valuetype UnityEngine.Vector3&](Bounds::m_Extents, ldloc:Bounds[exp:valuetype UnityEngine.Bounds&](lhs))))
174 stloc:float32(var_1_17, ldfld:float32(Vector3::y, ldfld:Vector3[exp:valuetype UnityEngine.Vector3&](Bounds::m_Extents, ldloc:Bounds[exp:valuetype UnityEngine.Bounds&](lhs))))
175}
176
177 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
178 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
179 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
180 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
181 --- End of inner exception stack trace ---
182 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
183 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
184*/;
185 }
186
187 // Token: 0x0600024D RID: 589 RVA: 0x0000559C File Offset: 0x0000379C
188 public static bool operator !=(Bounds lhs, Bounds rhs)
189 {
190 float y = lhs.m_Extents.y;
191 bool flag;
192 return flag;
193 }
194
195 // Token: 0x0600024E RID: 590 RVA: 0x000055B8 File Offset: 0x000037B8
197 {
198 }
199
200 // Token: 0x0600024F RID: 591 RVA: 0x000055C8 File Offset: 0x000037C8
201 public void Encapsulate(Vector3 point)
202 {
203 float z = this.m_Extents.z;
204 }
205
206 // Token: 0x06000250 RID: 592 RVA: 0x000055E4 File Offset: 0x000037E4
207 public override string ToString()
208 {
209 string text;
210 return text;
211 }
212
213 // Token: 0x06000251 RID: 593 RVA: 0x000055F4 File Offset: 0x000037F4
215 {
216 bool flag = string.IsNullOrEmpty(format);
217 if (formatProvider == null)
218 {
220 }
221 string text;
222 string text2;
223 if ((text == null || text != null) && (text2 == null || text2 != null))
224 {
225 string text3;
226 return text3;
227 }
228 throw new ArrayTypeMismatchException();
229 }
230
231 // Token: 0x04000319 RID: 793
233
234 // Token: 0x0400031A RID: 794
235 [NativeName("m_Extent")]
237 }
238}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
override int GetHashCode()
Definition Bounds.cs:24
static bool operator!=(Bounds lhs, Bounds rhs)
Definition Bounds.cs:188
static bool operator==(Bounds lhs, Bounds rhs)
Definition Bounds.cs:163
string ToString(string format, IFormatProvider formatProvider)
Definition Bounds.cs:214
Vector3 center
Definition Bounds.cs:90
Vector3 m_Center
Definition Bounds.cs:232
Vector3 extents
Definition Bounds.cs:124
void SetMinMax(Vector3 min, Vector3 max)
Definition Bounds.cs:196
override bool Equals(object other)
Definition Bounds.cs:32
Bounds(Vector3 center, Vector3 size)
Definition Bounds.cs:19
override string ToString()
Definition Bounds.cs:207
bool Equals(Bounds other)
Definition Bounds.cs:58
void Encapsulate(Vector3 point)
Definition Bounds.cs:201
Vector3 m_Extents
Definition Bounds.cs:236