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
Component.cs
Go to the documentation of this file.
1using System;
8
9namespace UnityEngine
10{
11 // Token: 0x020000C4 RID: 196
12 [NativeHeader("Runtime/Export/Scripting/Component.bindings.h")]
14 [NativeClass("Unity::Component")]
15 public class Component : Object
16 {
17 // Token: 0x170000B4 RID: 180
18 // (get) Token: 0x0600035B RID: 859 RVA: 0x00006E24 File Offset: 0x00005024
20 {
21 [FreeFunction("GetTransform", HasExplicitThis = true, ThrowsException = true)]
22 get
23 {
24 throw new MissingMethodException();
25 }
26 }
27
28 // Token: 0x170000B5 RID: 181
29 // (get) Token: 0x0600035C RID: 860 RVA: 0x00006E38 File Offset: 0x00005038
31 {
32 [FreeFunction("GetGameObject", HasExplicitThis = true)]
33 get
34 {
35 throw new MissingMethodException();
36 }
37 }
38
39 // Token: 0x0600035D RID: 861 RVA: 0x00006E4C File Offset: 0x0000504C
40 [TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
42 {
43 throw new MissingMethodException();
44 }
45
46 // Token: 0x0600035E RID: 862 RVA: 0x00006E68 File Offset: 0x00005068
47 [FreeFunction(HasExplicitThis = true, ThrowsException = true)]
52
53 // Token: 0x0600035F RID: 863 RVA: 0x000021B3 File Offset: 0x000003B3
54 public T GetComponent<T>()
55 {
56 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
57 }
58
59 // Token: 0x06000360 RID: 864 RVA: 0x00006E7C File Offset: 0x0000507C
60 [TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
65
66 // Token: 0x06000361 RID: 865 RVA: 0x00006E98 File Offset: 0x00005098
69 {
71 do
72 {
73 long num = 0L;
74 Type type;
75 componentInChildren = this.GetComponentInChildren(type, num != 0L);
76 if (componentInChildren == null)
77 {
78 return;
79 }
80 }
81 while (componentInChildren != null);
82 throw new InvalidCastException();
83 }
84
85 // Token: 0x06000362 RID: 866 RVA: 0x00006EC0 File Offset: 0x000050C0
87 {
88 /*
89An exception occurred when decompiling this method (06000362)
90
91ICSharpCode.Decompiler.DecompilerException: Error decompiling T[] UnityEngine.Component::GetComponentsInChildren<T>(System.Boolean)
92
93 ---> System.Exception: Basic block has to end with unconditional control flow.
94{
95 Block_0:
96 stloc:GameObject(var_0_06, callgetter:GameObject(Component::get_gameObject, ldloc:Component(this)))
97}
98
99 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
100 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
101 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
102 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
103 --- End of inner exception stack trace ---
104 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
105 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
106*/;
107 }
108
109 // Token: 0x06000363 RID: 867 RVA: 0x00006ED4 File Offset: 0x000050D4
111 {
113 }
114
115 // Token: 0x06000364 RID: 868 RVA: 0x00006EE8 File Offset: 0x000050E8
119
120 // Token: 0x06000365 RID: 869 RVA: 0x00006EF8 File Offset: 0x000050F8
121 [TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
123 {
124 throw new MissingMethodException();
125 }
126
127 // Token: 0x06000366 RID: 870 RVA: 0x00006F14 File Offset: 0x00005114
129 {
131 do
132 {
133 long num = 0L;
134 Type type;
135 componentInParent = this.GetComponentInParent(type, num != 0L);
136 if (componentInParent == null)
137 {
138 return;
139 }
140 }
141 while (componentInParent != null);
142 throw new InvalidCastException();
143 }
144
145 // Token: 0x06000367 RID: 871 RVA: 0x00006F3C File Offset: 0x0000513C
147 {
148 /*
149An exception occurred when decompiling this method (06000367)
150
151ICSharpCode.Decompiler.DecompilerException: Error decompiling T[] UnityEngine.Component::GetComponentsInParent<T>(System.Boolean)
152
153 ---> System.Exception: Basic block has to end with unconditional control flow.
154{
155 Block_0:
156 stloc:GameObject(var_0_06, callgetter:GameObject(Component::get_gameObject, ldloc:Component(this)))
157}
158
159 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
160 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
161 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
162 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
163 --- End of inner exception stack trace ---
164 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
165 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
166*/;
167 }
168
169 // Token: 0x06000368 RID: 872 RVA: 0x00006F50 File Offset: 0x00005150
174
175 // Token: 0x06000369 RID: 873 RVA: 0x000021B3 File Offset: 0x000003B3
177 {
178 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
179 }
180
181 // Token: 0x0600036A RID: 874 RVA: 0x00006F64 File Offset: 0x00005164
182 [FreeFunction(HasExplicitThis = true, ThrowsException = true)]
184 {
185 throw new MissingMethodException();
186 }
187
188 // Token: 0x0600036B RID: 875 RVA: 0x00006F78 File Offset: 0x00005178
190 {
191 throw new MissingMethodException();
192 }
193
194 // Token: 0x0600036C RID: 876 RVA: 0x00006F8C File Offset: 0x0000518C
196 {
197 Type type;
199 }
200
201 // Token: 0x0600036D RID: 877 RVA: 0x00006FA4 File Offset: 0x000051A4
202 public T[] GetComponents<T>()
203 {
204 /*
205An exception occurred when decompiling this method (0600036D)
206
207ICSharpCode.Decompiler.DecompilerException: Error decompiling T[] UnityEngine.Component::GetComponents<T>()
208
209 ---> System.Exception: Basic block has to end with unconditional control flow.
210{
211 Block_0:
212 stloc:GameObject(var_0_06, callgetter:GameObject(Component::get_gameObject, ldloc:Component(this)))
213}
214
215 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
216 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
217 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
218 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
219 --- End of inner exception stack trace ---
220 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
221 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
222*/;
223 }
224
225 // Token: 0x0600036E RID: 878 RVA: 0x00006FB8 File Offset: 0x000051B8
226 public Component()
227 {
228 if (!true)
229 {
230 }
231 base..ctor();
232 }
233 }
234}
class f__AnonymousType0<< Count > j__TPar
Component GetComponentInParent(Type t, bool includeInactive)
Definition Component.cs:122
Component GetComponentInChildren(Type t, bool includeInactive)
Definition Component.cs:61
Component GetComponent(Type type)
Definition Component.cs:41
T[] GetComponentsInChildren< T >(bool includeInactive)
Definition Component.cs:86
void GetComponentFastPath(Type type, IntPtr oneFurtherThanResultValue)
Definition Component.cs:48
void GetComponents(Type type, List< Component > results)
Definition Component.cs:189
T[] GetComponentsInParent< T >()
Definition Component.cs:176
GameObject gameObject
Definition Component.cs:31
void GetComponentsForListInternal(Type searchType, object resultList)
Definition Component.cs:183