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
PersistentCall.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Reflection
;
3
using
UnityEngine.Serialization
;
4
5
namespace
UnityEngine.Events
6
{
7
// Token: 0x02000164 RID: 356
8
[
Serializable
]
9
internal
class
PersistentCall
:
ISerializationCallbackReceiver
10
{
11
// Token: 0x1700015B RID: 347
12
// (get) Token: 0x060006A1 RID: 1697 RVA: 0x0000BD80 File Offset: 0x00009F80
13
public
Object
target
14
{
15
get
16
{
17
return
this.
m_Target
;
18
}
19
}
20
21
// Token: 0x1700015C RID: 348
22
// (get) Token: 0x060006A2 RID: 1698 RVA: 0x0000BD94 File Offset: 0x00009F94
23
public
string
targetAssemblyTypeName
24
{
25
get
26
{
27
bool
flag =
string
.IsNullOrEmpty(this.
m_TargetAssemblyTypeName
);
28
Object
target
= this.
m_Target
;
29
Type
type = this.
m_Target
.GetType();
30
string
text
;
31
this.m_TargetAssemblyTypeName
=
text
;
32
return
this.
m_TargetAssemblyTypeName
;
33
}
34
}
35
36
// Token: 0x1700015D RID: 349
37
// (get) Token: 0x060006A3 RID: 1699 RVA: 0x0000BDD0 File Offset: 0x00009FD0
38
public
string
methodName
39
{
40
get
41
{
42
return
this.
m_MethodName
;
43
}
44
}
45
46
// Token: 0x1700015E RID: 350
47
// (get) Token: 0x060006A4 RID: 1700 RVA: 0x0000BDE4 File Offset: 0x00009FE4
48
public
PersistentListenerMode
mode
49
{
50
get
51
{
52
return
this.
m_Mode
;
53
}
54
}
55
56
// Token: 0x1700015F RID: 351
57
// (get) Token: 0x060006A5 RID: 1701 RVA: 0x0000BDF8 File Offset: 0x00009FF8
58
public
ArgumentCache
arguments
59
{
60
get
61
{
62
return
this.
m_Arguments
;
63
}
64
}
65
66
// Token: 0x060006A6 RID: 1702 RVA: 0x0000BE0C File Offset: 0x0000A00C
67
public
bool
IsValid
()
68
{
69
return
string
.IsNullOrEmpty(this.
targetAssemblyTypeName
);
70
}
71
72
// Token: 0x060006A7 RID: 1703 RVA: 0x0000BE30 File Offset: 0x0000A030
73
public
BaseInvokableCall
GetRuntimeCall
(
UnityEventBase
theEvent
)
74
{
75
MethodInfo
methodInfo
;
76
Object
target2
;
77
if
(
theEvent
!=
null
&& this.
m_CallState
!=
UnityEventCallState
.Off)
78
{
79
methodInfo
=
theEvent
.FindMethod(
this
);
80
if
(
methodInfo
!=
null
)
81
{
82
bool
isStatic
=
methodInfo
.IsStatic;
83
Object
target
= this.
m_Target
;
84
bool
isStatic2
= methodInfo.
IsStatic
;
85
target2
= this.
m_Target
;
86
PersistentListenerMode
mode
= this.
m_Mode
;
87
}
88
}
89
ArgumentCache
arguments
= this.
m_Arguments
;
90
return
PersistentCall
.
GetObjectCall
(
target2
,
methodInfo
,
arguments
);
91
}
92
93
// Token: 0x060006A8 RID: 1704 RVA: 0x0000BEBC File Offset: 0x0000A0BC
94
private
static
BaseInvokableCall
GetObjectCall
(
Object
target
,
MethodInfo
method,
ArgumentCache
arguments
)
95
{
96
int
num = 1;
97
if
(num == 0)
98
{
99
}
100
if
(num == 0)
101
{
102
}
103
Type
type;
104
if
(type !=
null
|| num == 0)
105
{
106
}
107
if
(num == 0)
108
{
109
}
110
Type
type2
;
111
Type
type3
;
112
Type
type4
;
113
if
((
type2
==
null
||
type2
!=
null
) && (
type3
==
null
||
type3
!=
null
) && (
type4
==
null
||
type4
!=
null
) && (
type2
==
null
||
type2
!=
null
))
114
{
115
Type
type6
;
116
Type
type5
=
type6
.
GetType
();
117
object
obj
;
118
if
((
target
!=
null
&&
target
==
null
) || (
type6
!=
null
&&
type6
==
null
) ||
obj
!=
null
)
119
{
120
}
121
}
122
throw
new
ArrayTypeMismatchException
();
123
}
124
125
// Token: 0x060006A9 RID: 1705 RVA: 0x0000BF24 File Offset: 0x0000A124
126
public
void
OnBeforeSerialize
()
127
{
128
string
text
=
UnityEventTools
.
TidyAssemblyTypeName
(this.
m_TargetAssemblyTypeName
);
129
this.m_TargetAssemblyTypeName
=
text
;
130
}
131
132
// Token: 0x060006AA RID: 1706 RVA: 0x0000BF44 File Offset: 0x0000A144
133
public
void
OnAfterDeserialize
()
134
{
135
string
text
=
UnityEventTools
.
TidyAssemblyTypeName
(this.
m_TargetAssemblyTypeName
);
136
this.m_TargetAssemblyTypeName
=
text
;
137
}
138
139
// Token: 0x060006AB RID: 1707 RVA: 0x0000BF64 File Offset: 0x0000A164
140
public
PersistentCall
()
141
{
142
}
143
144
// Token: 0x04000658 RID: 1624
145
[
SerializeField
]
146
[
FormerlySerializedAs
(
"instance"
)]
147
private
Object
m_Target
;
148
149
// Token: 0x04000659 RID: 1625
150
[
SerializeField
]
151
private
string
m_TargetAssemblyTypeName
;
152
153
// Token: 0x0400065A RID: 1626
154
[
FormerlySerializedAs
(
"methodName"
)]
155
[
SerializeField
]
156
private
string
m_MethodName
;
157
158
// Token: 0x0400065B RID: 1627
159
[
FormerlySerializedAs
(
"mode"
)]
160
[
SerializeField
]
161
private
PersistentListenerMode
m_Mode
;
162
163
// Token: 0x0400065C RID: 1628
164
[
FormerlySerializedAs
(
"arguments"
)]
165
[
SerializeField
]
166
private
ArgumentCache
m_Arguments
;
167
168
// Token: 0x0400065D RID: 1629
169
[
FormerlySerializedAs
(
"m_Enabled"
)]
170
[
FormerlySerializedAs
(
"enabled"
)]
171
[
SerializeField
]
172
private
UnityEventCallState
m_CallState
=
UnityEventCallState
.RuntimeOnly;
173
}
174
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
System.ArrayTypeMismatchException
Definition
ArrayTypeMismatchException.cs:9
System.Reflection.MethodBase.IsStatic
bool IsStatic
Definition
MethodBase.cs:69
System.Reflection.MethodInfo
Definition
MethodInfo.cs:9
System.Type.GetType
new Type GetType()
Definition
Type.cs:287
System.Type
Definition
Type.cs:12
UnityEngine.Events.ArgumentCache
Definition
ArgumentCache.cs:10
UnityEngine.Events.BaseInvokableCall
Definition
BaseInvokableCall.cs:8
UnityEngine.Events.PersistentCall.mode
PersistentListenerMode mode
Definition
PersistentCall.cs:49
UnityEngine.Events.PersistentCall.GetObjectCall
static BaseInvokableCall GetObjectCall(Object target, MethodInfo method, ArgumentCache arguments)
Definition
PersistentCall.cs:94
UnityEngine.Events.PersistentCall.OnBeforeSerialize
void OnBeforeSerialize()
Definition
PersistentCall.cs:126
UnityEngine.Events.PersistentCall.arguments
ArgumentCache arguments
Definition
PersistentCall.cs:59
UnityEngine.Events.PersistentCall.m_Mode
PersistentListenerMode m_Mode
Definition
PersistentCall.cs:161
UnityEngine.Events.PersistentCall.m_TargetAssemblyTypeName
string m_TargetAssemblyTypeName
Definition
PersistentCall.cs:151
UnityEngine.Events.PersistentCall.m_Target
Object m_Target
Definition
PersistentCall.cs:147
UnityEngine.Events.PersistentCall.GetRuntimeCall
BaseInvokableCall GetRuntimeCall(UnityEventBase theEvent)
Definition
PersistentCall.cs:73
UnityEngine.Events.PersistentCall.methodName
string methodName
Definition
PersistentCall.cs:39
UnityEngine.Events.PersistentCall.OnAfterDeserialize
void OnAfterDeserialize()
Definition
PersistentCall.cs:133
UnityEngine.Events.PersistentCall.m_Arguments
ArgumentCache m_Arguments
Definition
PersistentCall.cs:166
UnityEngine.Events.PersistentCall.m_MethodName
string m_MethodName
Definition
PersistentCall.cs:156
UnityEngine.Events.PersistentCall.target
Object target
Definition
PersistentCall.cs:14
UnityEngine.Events.PersistentCall.m_CallState
UnityEventCallState m_CallState
Definition
PersistentCall.cs:172
UnityEngine.Events.PersistentCall.PersistentCall
PersistentCall()
Definition
PersistentCall.cs:140
UnityEngine.Events.PersistentCall.IsValid
bool IsValid()
Definition
PersistentCall.cs:67
UnityEngine.Events.PersistentCall.targetAssemblyTypeName
string targetAssemblyTypeName
Definition
PersistentCall.cs:24
UnityEngine.Events.PersistentCall
Definition
PersistentCall.cs:10
UnityEngine.Events.UnityEventBase
Definition
UnityEventBase.cs:13
UnityEngine.Events.UnityEventTools.TidyAssemblyTypeName
static string TidyAssemblyTypeName(string assemblyTypeName)
Definition
UnityEventTools.cs:9
UnityEngine.Events.UnityEventTools
Definition
UnityEventTools.cs:7
UnityEngine.Object
Definition
Object.cs:17
UnityEngine.SerializeField
Definition
SerializeField.cs:9
UnityEngine.ISerializationCallbackReceiver
Definition
ISerializationCallbackReceiver.cs:9
System.Reflection.TypeAttributes.Serializable
@ Serializable
System.Reflection
Definition
AmbiguousMatchException.cs:5
System.ExceptionArgument.text
@ text
System.ExceptionArgument.obj
@ obj
System
Definition
__ComObject.cs:4
UnityEngine.Events.PersistentListenerMode
PersistentListenerMode
Definition
PersistentListenerMode.cs:8
UnityEngine.Events.UnityEventCallState
UnityEventCallState
Definition
UnityEventCallState.cs:7
UnityEngine.Events
Definition
ArgumentCache.cs:6
UnityEngine.Serialization
Definition
FormerlySerializedAsAttribute.cs:5
source
UnityEngine.CoreModule
UnityEngine
Events
PersistentCall.cs
Generated by
1.10.0