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
SingletonMonoBehavior.cs
Go to the documentation of this file.
1using System;
4using UnityEngine;
5
6namespace InControl
7{
8 // Token: 0x0200006D RID: 109
10 {
11 // Token: 0x17000163 RID: 355
12 // (get) Token: 0x06000503 RID: 1283 RVA: 0x0000FD78 File Offset: 0x0000DF78
13 public static TComponent Instance
14 {
15 get
16 {
17 if (!true)
18 {
19 }
20 bool flag;
21 if (!flag)
22 {
23 }
24 long num = 0L;
25 if (flag)
26 {
27 }
28 if (num == 0L)
29 {
30 }
31 throw new OutOfMemoryException();
32 }
33 }
34
35 // Token: 0x17000164 RID: 356
36 // (get) Token: 0x06000504 RID: 1284 RVA: 0x0000FDB8 File Offset: 0x0000DFB8
37 protected bool EnforceSingleton
38 {
39 get
40 {
41 int instanceID = base.GetInstanceID();
42 bool isPlaying = Application.isPlaying;
43 long num = 0L;
44 base.enabled = num != 0L;
45 return true;
46 }
47 }
48
49 // Token: 0x17000165 RID: 357
50 // (get) Token: 0x06000505 RID: 1285 RVA: 0x0000FDE4 File Offset: 0x0000DFE4
51 protected bool IsTheSingleton
52 {
53 get
54 {
55 int instanceID = base.GetInstanceID();
56 if (this == null)
57 {
58 }
59 long num = 0L;
60 if (this != null)
61 {
62 }
63 if (num == 0L)
64 {
65 }
66 throw new OutOfMemoryException();
67 }
68 }
69
70 // Token: 0x17000166 RID: 358
71 // (get) Token: 0x06000506 RID: 1286 RVA: 0x0000FE24 File Offset: 0x0000E024
72 protected bool IsNotTheSingleton
73 {
74 get
75 {
76 int instanceID = base.GetInstanceID();
77 if (this == null)
78 {
79 }
80 long num = 0L;
81 if (this != null)
82 {
83 }
84 if (num == 0L)
85 {
86 }
87 throw new OutOfMemoryException();
88 }
89 }
90
91 // Token: 0x06000507 RID: 1287 RVA: 0x000025E1 File Offset: 0x000007E1
92 private static TComponent[] FindInstances()
93 {
94 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
95 }
96
97 // Token: 0x06000508 RID: 1288 RVA: 0x0000FE64 File Offset: 0x0000E064
99 {
100 }
101
102 // Token: 0x06000509 RID: 1289 RVA: 0x0000FE74 File Offset: 0x0000E074
103 protected virtual void Awake()
104 {
105 int num = 1;
106 bool isPlaying = Application.isPlaying;
107 if (num == 0)
108 {
109 }
110 int instanceID = base.GetInstanceID();
111 long num2 = 0L;
112 base.enabled = num2 != 0L;
113 if (instanceID == 0)
114 {
115 }
116 }
117
118 // Token: 0x0600050A RID: 1290 RVA: 0x0000FED0 File Offset: 0x0000E0D0
119 protected virtual void OnDestroy()
120 {
121 int instanceID = base.GetInstanceID();
122 if (this == null)
123 {
124 }
125 if (this == null)
126 {
127 }
128 }
129
130 // Token: 0x0600050B RID: 1291 RVA: 0x0000FF1C File Offset: 0x0000E11C
132 {
133 }
134
135 // Token: 0x0600050C RID: 1292 RVA: 0x0000FF30 File Offset: 0x0000E130
136 // Note: this type is marked as 'beforefieldinit'.
138 {
139 }
140
141 // Token: 0x040003F2 RID: 1010
142 private static TComponent instance;
143
144 // Token: 0x040003F3 RID: 1011
145 private static bool hasInstance;
146
147 // Token: 0x040003F4 RID: 1012
148 private static int instanceId;
149
150 // Token: 0x040003F5 RID: 1013
151 private static readonly object lockObject;
152
153 // Token: 0x0200006E RID: 110
155 [Serializable]
156 private sealed class <>c
157 {
158 // Token: 0x0600050D RID: 1293 RVA: 0x0000FF40 File Offset: 0x0000E140
159 // Note: this type is marked as 'beforefieldinit'.
160 static <>c()
161 {
162 }
163
164 // Token: 0x0600050E RID: 1294 RVA: 0x0000FF50 File Offset: 0x0000E150
165 public <>c()
166 {
167 }
168
169 // Token: 0x0600050F RID: 1295 RVA: 0x0000FF64 File Offset: 0x0000E164
171 {
176 return siblingIndex2.CompareTo(siblingIndex2);
177 }
178
179 // Token: 0x06000510 RID: 1296 RVA: 0x000025E1 File Offset: 0x000007E1
180 internal bool <Awake>b__14_0(TComponent o)
181 {
182 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
183 }
184
185 // Token: 0x040003F6 RID: 1014
187
188 // Token: 0x040003F7 RID: 1015
189 public static Comparison<TComponent> <>9__12_0;
190
191 // Token: 0x040003F8 RID: 1016
192 public static Func<TComponent, bool> <>9__14_0;
193 }
194 }
195}
class f__AnonymousType0<< Count > j__TPar