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
Object.cs
Go to the documentation of this file.
1using System;
7
8namespace UnityEngine
9{
10 // Token: 0x020000A3 RID: 163
11 [RequiredByNativeCode(GenerateProxy = true)]
12 [NativeHeader("Runtime/GameCode/CloneObject.h")]
13 [NativeHeader("Runtime/SceneManager/SceneManager.h")]
14 [NativeHeader("Runtime/Export/Scripting/UnityEngineObject.bindings.h")]
15 [StructLayout(0)]
16 public class Object
17 {
18 // Token: 0x060002DF RID: 735 RVA: 0x0000629C File Offset: 0x0000449C
19 public int GetInstanceID()
20 {
22 throw new MissingMethodException();
23 }
24
25 // Token: 0x060002E0 RID: 736 RVA: 0x000062BC File Offset: 0x000044BC
26 public override int GetHashCode()
27 {
28 return base.GetHashCode();
29 }
30
31 // Token: 0x060002E1 RID: 737 RVA: 0x000062D0 File Offset: 0x000044D0
32 public override bool Equals(object other)
33 {
34 if (other != null)
35 {
36 }
37 if (other != null)
38 {
39 }
40 bool flag;
41 return flag;
42 }
43
44 // Token: 0x060002E2 RID: 738 RVA: 0x000062E8 File Offset: 0x000044E8
45 public static implicit operator bool(Object exists)
46 {
47 if (!true)
48 {
49 }
50 bool flag;
51 return flag;
52 }
53
54 // Token: 0x060002E3 RID: 739 RVA: 0x000062FC File Offset: 0x000044FC
55 private static bool CompareBaseObjects(Object lhs, Object rhs)
56 {
57 if (!true)
58 {
59 }
60 if (lhs != null)
61 {
62 }
64 }
65
66 // Token: 0x060002E4 RID: 740 RVA: 0x00006318 File Offset: 0x00004518
67 private static bool IsNativeObjectAlive(Object o)
68 {
69 bool flag;
70 return flag;
71 }
72
73 // Token: 0x060002E5 RID: 741 RVA: 0x00006328 File Offset: 0x00004528
75 {
76 return this.m_CachedPtr;
77 }
78
79 // Token: 0x170000AB RID: 171
80 // (get) Token: 0x060002E6 RID: 742 RVA: 0x0000633C File Offset: 0x0000453C
81 // (set) Token: 0x060002E7 RID: 743 RVA: 0x00006354 File Offset: 0x00004554
82 public string name
83 {
84 get
85 {
86 if (!true)
87 {
88 }
89 throw new MissingMethodException();
90 }
91 set
92 {
93 if (!true)
94 {
95 }
96 throw new MissingMethodException();
97 }
98 }
99
100 // Token: 0x060002E8 RID: 744 RVA: 0x0000636C File Offset: 0x0000456C
101 [TypeInferenceRule(TypeInferenceRules.TypeOfFirstArgument)]
102 public static Object Instantiate(Object original, Vector3 position, Quaternion rotation)
103 {
104 if (!true)
105 {
106 }
107 Object @object;
108 return @object;
109 }
110
111 // Token: 0x060002E9 RID: 745 RVA: 0x00006380 File Offset: 0x00004580
112 [TypeInferenceRule(TypeInferenceRules.TypeOfFirstArgument)]
113 public static Object Instantiate(Object original)
114 {
115 if (!true)
116 {
117 }
118 throw new MissingMethodException();
119 }
120
121 // Token: 0x060002EA RID: 746 RVA: 0x00006398 File Offset: 0x00004598
122 public static T Instantiate<T>(T original) where T : Object
123 {
124 Object @object;
125 do
126 {
127 if (!true)
128 {
129 }
130 if (@object == null)
131 {
132 return;
133 }
134 }
135 while (@object != null);
136 throw new InvalidCastException();
137 }
138
139 // Token: 0x060002EB RID: 747 RVA: 0x000063B8 File Offset: 0x000045B8
140 public static T Instantiate<T>(T original, Vector3 position, Quaternion rotation) where T : Object
141 {
142 Object @object;
143 do
144 {
145 if (!true)
146 {
147 }
148 if (@object == null)
149 {
150 return;
151 }
152 }
153 while (@object != null);
154 throw new InvalidCastException();
155 }
156
157 // Token: 0x060002EC RID: 748 RVA: 0x000063D8 File Offset: 0x000045D8
158 [NativeMethod(Name = "Scripting::DestroyObjectFromScripting", IsFreeFunction = true, ThrowsException = true)]
159 public static void Destroy(Object obj, [DefaultValue("0.0F")] float t)
160 {
161 throw new MissingMethodException();
162 }
163
164 // Token: 0x060002ED RID: 749 RVA: 0x000063EC File Offset: 0x000045EC
166 public static void Destroy(Object obj)
167 {
168 if (!true)
169 {
170 }
171 throw new MissingMethodException();
172 }
173
174 // Token: 0x060002EE RID: 750 RVA: 0x00006404 File Offset: 0x00004604
175 [NativeMethod(Name = "Scripting::DestroyObjectFromScriptingImmediate", IsFreeFunction = true, ThrowsException = true)]
176 public static void DestroyImmediate(Object obj, [DefaultValue("false")] bool allowDestroyingAssets)
177 {
178 throw new MissingMethodException();
179 }
180
181 // Token: 0x060002EF RID: 751 RVA: 0x00006418 File Offset: 0x00004618
183 public static void DestroyImmediate(Object obj)
184 {
185 if (!true)
186 {
187 }
188 throw new MissingMethodException();
189 }
190
191 // Token: 0x060002F0 RID: 752 RVA: 0x00006430 File Offset: 0x00004630
192 [FreeFunction("UnityEngineObjectBindings::FindObjectsOfType")]
193 [TypeInferenceRule(TypeInferenceRules.ArrayOfTypeReferencedByFirstArgument)]
194 public static Object[] FindObjectsOfType(Type type, bool includeInactive)
195 {
196 throw new MissingMethodException();
197 }
198
199 // Token: 0x060002F1 RID: 753 RVA: 0x00006444 File Offset: 0x00004644
200 [FreeFunction("GetSceneManager().DontDestroyOnLoad", ThrowsException = true)]
201 public static void DontDestroyOnLoad([NotNull("NullExceptionObject")] Object target)
202 {
203 throw new MissingMethodException();
204 }
205
206 // Token: 0x170000AC RID: 172
207 // (set) Token: 0x060002F2 RID: 754 RVA: 0x00006458 File Offset: 0x00004658
209 {
210 set
211 {
212 throw new MissingMethodException();
213 }
214 }
215
216 // Token: 0x060002F3 RID: 755 RVA: 0x0000646C File Offset: 0x0000466C
217 public static T[] FindObjectsOfType<T>() where T : Object
218 {
219 /*
220An exception occurred when decompiling this method (060002F3)
221
222ICSharpCode.Decompiler.DecompilerException: Error decompiling T[] UnityEngine.Object::FindObjectsOfType<T>()
223
224 ---> System.Exception: Basic block has to end with unconditional control flow.
225{
226 Block_0:
227 stloc:int64(var_1_01, ldc.i4:int64(0))
228 stloc:class UnityEngine.Object[](var_2_09, call:class UnityEngine.Object[](Object::FindObjectsOfType, ldloc:Type(var_0), ldloc:int64[exp:bool](var_1_01)))
229}
230
231 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
232 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
233 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
234 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
235 --- End of inner exception stack trace ---
236 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
237 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
238*/;
239 }
240
241 // Token: 0x060002F4 RID: 756 RVA: 0x00006484 File Offset: 0x00004684
242 private static void CheckNullArgument(object arg, string message)
243 {
244 while (arg == null)
245 {
246 }
247 }
248
249 // Token: 0x060002F5 RID: 757 RVA: 0x00006494 File Offset: 0x00004694
250 public override string ToString()
251 {
252 if (!true)
253 {
254 }
255 throw new MissingMethodException();
256 }
257
258 // Token: 0x060002F6 RID: 758 RVA: 0x000064AC File Offset: 0x000046AC
259 public static bool operator ==(Object x, Object y)
260 {
261 if (!true)
262 {
263 }
264 bool flag;
265 return flag;
266 }
267
268 // Token: 0x060002F7 RID: 759 RVA: 0x000064C0 File Offset: 0x000046C0
269 public static bool operator !=(Object x, Object y)
270 {
271 if (!true)
272 {
273 }
274 bool flag;
275 return flag;
276 }
277
278 // Token: 0x060002F8 RID: 760 RVA: 0x000064D4 File Offset: 0x000046D4
279 [NativeMethod(Name = "Object::GetOffsetOfInstanceIdMember", IsFreeFunction = true, IsThreadSafe = true)]
281 {
282 throw new MissingMethodException();
283 }
284
285 // Token: 0x060002F9 RID: 761 RVA: 0x000064E8 File Offset: 0x000046E8
286 [NativeMethod(Name = "CloneObject", IsFreeFunction = true, ThrowsException = true)]
287 private static Object Internal_CloneSingle([NotNull("NullExceptionObject")] Object data)
288 {
289 throw new MissingMethodException();
290 }
291
292 // Token: 0x060002FA RID: 762 RVA: 0x000064FC File Offset: 0x000046FC
293 [FreeFunction("InstantiateObject")]
294 private static Object Internal_InstantiateSingle([NotNull("NullExceptionObject")] Object data, Vector3 pos, Quaternion rot)
295 {
296 if (!true)
297 {
298 }
299 throw new MissingMethodException();
300 }
301
302 // Token: 0x060002FB RID: 763 RVA: 0x00006514 File Offset: 0x00004714
303 [FreeFunction("UnityEngineObjectBindings::ToString")]
304 private static string ToString(Object obj)
305 {
306 throw new MissingMethodException();
307 }
308
309 // Token: 0x060002FC RID: 764 RVA: 0x00006528 File Offset: 0x00004728
310 [FreeFunction("UnityEngineObjectBindings::GetName")]
311 private static string GetName([NotNull("NullExceptionObject")] Object obj)
312 {
313 throw new MissingMethodException();
314 }
315
316 // Token: 0x060002FD RID: 765 RVA: 0x0000653C File Offset: 0x0000473C
317 [FreeFunction("UnityEngineObjectBindings::SetName")]
318 private static void SetName([NotNull("NullExceptionObject")] Object obj, string name)
319 {
320 throw new MissingMethodException();
321 }
322
323 // Token: 0x060002FE RID: 766 RVA: 0x00006550 File Offset: 0x00004750
325 [FreeFunction("UnityEngineObjectBindings::FindObjectFromInstanceID")]
326 internal static Object FindObjectFromInstanceID(int instanceID)
327 {
328 throw new MissingMethodException();
329 }
330
331 // Token: 0x060002FF RID: 767 RVA: 0x00006564 File Offset: 0x00004764
332 public Object()
333 {
334 }
335
336 // Token: 0x06000300 RID: 768 RVA: 0x00006578 File Offset: 0x00004778
337 // Note: this type is marked as 'beforefieldinit'.
338 static Object()
339 {
340 }
341
342 // Token: 0x06000301 RID: 769 RVA: 0x00006588 File Offset: 0x00004788
344 {
345 throw new MissingMethodException();
346 }
347
348 // Token: 0x0400035D RID: 861
350
351 // Token: 0x0400035E RID: 862
353
354 // Token: 0x0400035F RID: 863
355 private const string objectIsNullMessage = "The Object you want to instantiate is null.";
356
357 // Token: 0x04000360 RID: 864
358 private const string cloneDestroyedMessage = "Instantiate failed because the clone was destroyed during creation. This can happen if DestroyImmediate is called in MonoBehaviour.Awake.";
359 }
360}
class f__AnonymousType0<< Count > j__TPar
override bool Equals(object other)
Definition Object.cs:32
static Object()
Definition Object.cs:338
static bool operator==(Object x, Object y)
Definition Object.cs:259
static T[] FindObjectsOfType< T >()
Definition Object.cs:217
static void CheckNullArgument(object arg, string message)
Definition Object.cs:242
static void Destroy(Object obj)
Definition Object.cs:166
static bool IsNativeObjectAlive(Object o)
Definition Object.cs:67
static void Destroy(Object obj, [DefaultValue("0.0F")] float t)
Definition Object.cs:159
static Object Internal_InstantiateSingle_Injected(Object data, Vector3 pos, Quaternion rot)
Definition Object.cs:343
static int OffsetOfInstanceIDInCPlusPlusObject
Definition Object.cs:352
override string ToString()
Definition Object.cs:250
static Object FindObjectFromInstanceID(int instanceID)
Definition Object.cs:326
IntPtr m_CachedPtr
Definition Object.cs:349
static bool operator!=(Object x, Object y)
Definition Object.cs:269
IntPtr GetCachedPtr()
Definition Object.cs:74
static void DestroyImmediate(Object obj, [DefaultValue("false")] bool allowDestroyingAssets)
Definition Object.cs:176
static Object Instantiate(Object original, Vector3 position, Quaternion rotation)
Definition Object.cs:102
static Object Instantiate(Object original)
Definition Object.cs:113
static T Instantiate< T >(T original)
Definition Object.cs:122
static string GetName([NotNull("NullExceptionObject")] Object obj)
Definition Object.cs:311
int GetInstanceID()
Definition Object.cs:19
HideFlags hideFlags
Definition Object.cs:209
static string ToString(Object obj)
Definition Object.cs:304
override int GetHashCode()
Definition Object.cs:26
static void SetName([NotNull("NullExceptionObject")] Object obj, string name)
Definition Object.cs:318
static Object Internal_CloneSingle([NotNull("NullExceptionObject")] Object data)
Definition Object.cs:287
static Object Internal_InstantiateSingle([NotNull("NullExceptionObject")] Object data, Vector3 pos, Quaternion rot)
Definition Object.cs:294
const string cloneDestroyedMessage
Definition Object.cs:358
static bool CompareBaseObjects(Object lhs, Object rhs)
Definition Object.cs:55
static Object[] FindObjectsOfType(Type type, bool includeInactive)
Definition Object.cs:194
static void DontDestroyOnLoad([NotNull("NullExceptionObject")] Object target)
Definition Object.cs:201
static void DestroyImmediate(Object obj)
Definition Object.cs:183
static int GetOffsetOfInstanceIDInCPlusPlusObject()
Definition Object.cs:280
const string objectIsNullMessage
Definition Object.cs:355