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.
1
using
System
;
2
using
System.Runtime.CompilerServices
;
3
using
Cpp2IlInjected
;
4
using
UnityEngine
;
5
6
namespace
InControl
7
{
8
// Token: 0x0200006D RID: 109
9
public
abstract
class
SingletonMonoBehavior
<
TComponent
> :
MonoBehaviour
where
TComponent
:
MonoBehaviour
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 = 0
L
;
25
if
(flag)
26
{
27
}
28
if
(num == 0
L
)
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 = 0
L
;
44
base.enabled
= num != 0
L
;
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 = 0
L
;
60
if
(
this
!=
null
)
61
{
62
}
63
if
(num == 0
L
)
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 = 0
L
;
81
if
(
this
!=
null
)
82
{
83
}
84
if
(num == 0
L
)
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
98
private
static
TComponent
FindFirstInstance
()
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
= 0
L
;
112
base.enabled
=
num2
!= 0
L
;
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
131
protected
SingletonMonoBehavior
()
132
{
133
}
134
135
// Token: 0x0600050C RID: 1292 RVA: 0x0000FF30 File Offset: 0x0000E130
136
// Note: this type is marked as 'beforefieldinit'.
137
static
SingletonMonoBehavior
()
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
154
[
CompilerGenerated
]
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
170
internal
int <FindInstances>
b__12_0
(
TComponent
a,
TComponent
b)
171
{
172
Transform
transform
;
173
int
siblingIndex
=
transform
.
GetSiblingIndex
();
174
Transform
transform2
;
175
int
siblingIndex2
=
transform2
.
GetSiblingIndex
();
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
186
public
static
readonly
SingletonMonoBehavior<TComponent>
.<>
c <>
9;
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
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Cpp2IlInjected.AnalysisFailedException
Definition
AnalysisFailedException.cs:7
InControl.SingletonMonoBehavior.SingletonMonoBehavior
SingletonMonoBehavior()
Definition
SingletonMonoBehavior.cs:131
InControl.SingletonMonoBehavior.Instance
static TComponent Instance
Definition
SingletonMonoBehavior.cs:14
InControl.SingletonMonoBehavior.EnforceSingleton
bool EnforceSingleton
Definition
SingletonMonoBehavior.cs:38
InControl.SingletonMonoBehavior.OnDestroy
virtual void OnDestroy()
Definition
SingletonMonoBehavior.cs:119
InControl.SingletonMonoBehavior.hasInstance
static bool hasInstance
Definition
SingletonMonoBehavior.cs:145
InControl.SingletonMonoBehavior.lockObject
static readonly object lockObject
Definition
SingletonMonoBehavior.cs:151
InControl.SingletonMonoBehavior.instanceId
static int instanceId
Definition
SingletonMonoBehavior.cs:148
InControl.SingletonMonoBehavior.FindInstances
static TComponent[] FindInstances()
Definition
SingletonMonoBehavior.cs:92
InControl.SingletonMonoBehavior.IsNotTheSingleton
bool IsNotTheSingleton
Definition
SingletonMonoBehavior.cs:73
InControl.SingletonMonoBehavior.SingletonMonoBehavior
static SingletonMonoBehavior()
Definition
SingletonMonoBehavior.cs:137
InControl.SingletonMonoBehavior.instance
static TComponent instance
Definition
SingletonMonoBehavior.cs:142
InControl.SingletonMonoBehavior.IsTheSingleton
bool IsTheSingleton
Definition
SingletonMonoBehavior.cs:52
InControl.SingletonMonoBehavior.FindFirstInstance
static TComponent FindFirstInstance()
Definition
SingletonMonoBehavior.cs:98
InControl.SingletonMonoBehavior.Awake
virtual void Awake()
Definition
SingletonMonoBehavior.cs:103
InControl.SingletonMonoBehavior
Definition
SingletonMonoBehavior.cs:10
System.Comparison
Definition
Comparison.cs:8
System.Func
Definition
Func.cs:8
System.OutOfMemoryException
Definition
OutOfMemoryException.cs:9
UnityEngine.Application.isPlaying
static bool isPlaying
Definition
Application.cs:46
UnityEngine.Application
Definition
Application.cs:29
UnityEngine.Component.transform
Transform transform
Definition
Component.cs:20
UnityEngine.MonoBehaviour
Definition
MonoBehaviour.cs:15
UnityEngine.Transform.GetSiblingIndex
int GetSiblingIndex()
Definition
Transform.cs:243
UnityEngine.Transform
Definition
Transform.cs:17
Cpp2IlInjected
Definition
AnalysisFailedException.cs:4
InControl.Key.L
@ L
InControl
Definition
BindingListenOptions.cs:4
System.Runtime.CompilerServices
Definition
AsyncMethodBuilderAttribute.cs:4
System
Definition
__ComObject.cs:4
UnityEngine
Definition
_AndroidJNIHelper.cs:6
source
InControl
SingletonMonoBehavior.cs
Generated by
1.10.0