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
UnityEventBase.cs
Go to the documentation of this file.
1using System;
6
7namespace UnityEngine.Events
8{
9 // Token: 0x02000167 RID: 359
13 {
14 // Token: 0x060006B4 RID: 1716 RVA: 0x0000C048 File Offset: 0x0000A248
15 protected UnityEventBase()
16 {
17 }
18
19 // Token: 0x060006B5 RID: 1717 RVA: 0x0000C064 File Offset: 0x0000A264
25
26 // Token: 0x060006B6 RID: 1718 RVA: 0x0000C084 File Offset: 0x0000A284
32
33 // Token: 0x060006B7 RID: 1719
34 protected abstract MethodInfo FindMethod_Impl(string name, Type targetObjType);
35
36 // Token: 0x060006B8 RID: 1720
37 internal abstract BaseInvokableCall GetDelegate(object target, MethodInfo theFunction);
38
39 // Token: 0x060006B9 RID: 1721 RVA: 0x0000C0A4 File Offset: 0x0000A2A4
41 {
42 if (!true)
43 {
44 }
45 bool flag = string.IsNullOrEmpty(call.m_Arguments.m_ObjectArgumentAssemblyTypeName);
46 ArgumentCache arguments = call.m_Arguments;
47 if (arguments.m_ObjectArgumentAssemblyTypeName != null || arguments == null)
48 {
49 }
50 Object target = call.m_Target;
51 if (arguments == null)
52 {
53 }
54 Type type = call.m_Target.GetType();
55 string targetAssemblyTypeName = call.targetAssemblyTypeName;
56 string methodName = call.m_MethodName;
59 return methodInfo;
60 }
61
62 // Token: 0x060006BA RID: 1722 RVA: 0x0000C10C File Offset: 0x0000A30C
64 {
65 if (mode == PersistentListenerMode.EventDefined)
66 {
67 }
68 Type type;
69 if (type == null || type != null)
70 {
71 if (mode == PersistentListenerMode.EventDefined)
72 {
73 }
74 Type type2;
75 if (type2 == null || type2 != null)
76 {
78 return methodInfo;
79 }
80 }
82 }
83
84 // Token: 0x060006BB RID: 1723 RVA: 0x0000C140 File Offset: 0x0000A340
85 private void DirtyPersistentCalls()
86 {
88 this.m_CallsDirty = true;
89 }
90
91 // Token: 0x060006BC RID: 1724 RVA: 0x0000C160 File Offset: 0x0000A360
93 {
94 if (this.m_CallsDirty)
95 {
97 this.m_PersistentCalls.Initialize(calls, this);
98 }
99 }
100
101 // Token: 0x060006BD RID: 1725 RVA: 0x0000C18C File Offset: 0x0000A38C
103 {
104 this.m_Calls.AddListener(call);
105 }
106
107 // Token: 0x060006BE RID: 1726 RVA: 0x0000C1A8 File Offset: 0x0000A3A8
108 protected void RemoveListener(object targetObj, MethodInfo method)
109 {
110 this.m_Calls.RemoveListener(targetObj, method);
111 }
112
113 // Token: 0x060006BF RID: 1727 RVA: 0x0000C1C4 File Offset: 0x0000A3C4
115 {
116 if (this.m_CallsDirty)
117 {
119 this.m_PersistentCalls.Initialize(calls, this);
120 }
121 return this.m_Calls.PrepareInvoke();
122 }
123
124 // Token: 0x060006C0 RID: 1728 RVA: 0x0000C1F8 File Offset: 0x0000A3F8
125 public override string ToString()
126 {
127 string text = base.ToString();
128 Type type = base.GetType();
129 string text2;
130 return text2;
131 }
132
133 // Token: 0x060006C1 RID: 1729 RVA: 0x0000C214 File Offset: 0x0000A414
135 {
137 return methodInfo;
138 }
139
140 // Token: 0x060006C2 RID: 1730 RVA: 0x0000C224 File Offset: 0x0000A424
142 {
143 if (!true)
144 {
145 }
147 return methodInfo;
148 }
149
150 // Token: 0x04000663 RID: 1635
152
153 // Token: 0x04000664 RID: 1636
154 [FormerlySerializedAs("m_PersistentListeners")]
157
158 // Token: 0x04000665 RID: 1637
159 private bool m_CallsDirty = true;
160 }
161}
class f__AnonymousType0<< Count > j__TPar
new Type GetType()
Definition Type.cs:287
void AddListener(BaseInvokableCall call)
void RemoveListener(object targetObj, MethodInfo method)
List< BaseInvokableCall > PrepareInvoke()
void Initialize(InvokableCallList invokableList, UnityEventBase unityEventBase)
void AddCall(BaseInvokableCall call)
MethodInfo FindMethod(PersistentCall call)
static MethodInfo GetValidMethodInfo(Type objectType, string functionName, Type[] argumentTypes)
List< BaseInvokableCall > PrepareInvoke()
BaseInvokableCall GetDelegate(object target, MethodInfo theFunction)
void RemoveListener(object targetObj, MethodInfo method)
MethodInfo FindMethod(string name, Type listenerType, PersistentListenerMode mode, Type argumentType)
PersistentCallGroup m_PersistentCalls
static MethodInfo GetValidMethodInfo(object obj, string functionName, Type[] argumentTypes)
MethodInfo FindMethod_Impl(string name, Type targetObjType)