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
PlayerConnection.cs
Go to the documentation of this file.
1using System;
7
9{
10 // Token: 0x020000FA RID: 250
13 {
14 // Token: 0x17000114 RID: 276
15 // (get) Token: 0x06000534 RID: 1332 RVA: 0x000095F4 File Offset: 0x000077F4
17 {
18 get
19 {
21 }
22 }
23
24 // Token: 0x17000115 RID: 277
25 // (get) Token: 0x06000535 RID: 1333 RVA: 0x000021B3 File Offset: 0x000003B3
26 public bool isConnected
27 {
28 get
29 {
30 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
31 }
32 }
33
34 // Token: 0x06000536 RID: 1334 RVA: 0x0000960C File Offset: 0x0000780C
41
42 // Token: 0x06000537 RID: 1335 RVA: 0x00009628 File Offset: 0x00007828
43 public void OnEnable()
44 {
45 if (this.m_IsInitilized)
46 {
47 return;
48 }
49 int num = 1;
50 this.m_IsInitilized = num != 0;
51 }
52
53 // Token: 0x06000538 RID: 1336 RVA: 0x000021B3 File Offset: 0x000003B3
55 {
56 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
57 }
58
59 // Token: 0x06000539 RID: 1337 RVA: 0x00009648 File Offset: 0x00007848
64
65 // Token: 0x0600053A RID: 1338 RVA: 0x0000966C File Offset: 0x0000786C
71
72 // Token: 0x0600053B RID: 1339 RVA: 0x00009694 File Offset: 0x00007894
77
78 // Token: 0x0600053C RID: 1340 RVA: 0x000096C8 File Offset: 0x000078C8
83
84 // Token: 0x0600053D RID: 1341 RVA: 0x000096E4 File Offset: 0x000078E4
89
90 // Token: 0x0600053E RID: 1342 RVA: 0x00009700 File Offset: 0x00007900
95
96 // Token: 0x0600053F RID: 1343 RVA: 0x0000971C File Offset: 0x0000791C
97 public void Send(Guid messageId, byte[] data)
98 {
99 }
100
101 // Token: 0x06000540 RID: 1344 RVA: 0x000021B3 File Offset: 0x000003B3
102 public bool TrySend(Guid messageId, byte[] data)
103 {
104 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
105 }
106
107 // Token: 0x06000541 RID: 1345 RVA: 0x0000972C File Offset: 0x0000792C
108 public bool BlockUntilRecvMsg(Guid messageId, int timeout)
109 {
110 /*
111An exception occurred when decompiling this method (06000541)
112
113ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.Networking.PlayerConnection.PlayerConnection::BlockUntilRecvMsg(System.Guid,System.Int32)
114
115 ---> System.Exception: Basic block has to end with unconditional control flow.
116{
117 IL_0010:
118 stloc:float64(var_4_22, callgetter:float64(TimeSpan::get_TotalMilliseconds, call:TimeSpan[exp:valuetype [mscorlib]System.TimeSpan&](DateTime::op_Subtraction, callgetter:DateTime(DateTime::get_Now), ldloc:DateTime(var_2_0C))))
119}
120
121 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
122 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
123 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
124 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
125 --- End of inner exception stack trace ---
126 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
127 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
128*/;
129 }
130
131 // Token: 0x06000542 RID: 1346 RVA: 0x0000975C File Offset: 0x0000795C
132 public void DisconnectAll()
133 {
134 }
135
136 // Token: 0x06000543 RID: 1347 RVA: 0x0000976C File Offset: 0x0000796C
138 private static void MessageCallbackInternal(IntPtr data, ulong size, ulong guid, string messageId)
139 {
140 if (size != 0UL)
141 {
142 return;
143 }
145 }
146
147 // Token: 0x06000544 RID: 1348 RVA: 0x000021B3 File Offset: 0x000003B3
149 private static void ConnectedCallbackInternal(int playerId)
150 {
151 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
152 }
153
154 // Token: 0x06000545 RID: 1349 RVA: 0x00009790 File Offset: 0x00007990
161
162 // Token: 0x06000546 RID: 1350 RVA: 0x000097B8 File Offset: 0x000079B8
164 {
165 }
166
167 // Token: 0x0400041B RID: 1051
169
170 // Token: 0x0400041C RID: 1052
173
174 // Token: 0x0400041D RID: 1053
177
178 // Token: 0x0400041E RID: 1054
179 private bool m_IsInitilized;
180
181 // Token: 0x0400041F RID: 1055
183
184 // Token: 0x020000FB RID: 251
186 private sealed class <>c__DisplayClass12_0
187 {
188 // Token: 0x06000547 RID: 1351 RVA: 0x000097CC File Offset: 0x000079CC
190 {
191 }
192
193 // Token: 0x06000548 RID: 1352 RVA: 0x000097E0 File Offset: 0x000079E0
195 {
196 string messageTypeId = x.m_messageTypeId;
197 Guid guid = this.messageId;
198 byte d = this.messageId._d;
199 bool flag;
200 return flag;
201 }
202
203 // Token: 0x04000420 RID: 1056
204 public Guid messageId;
205 }
206
207 // Token: 0x020000FC RID: 252
209 private sealed class <>c__DisplayClass13_0
210 {
211 // Token: 0x06000549 RID: 1353 RVA: 0x00009808 File Offset: 0x00007A08
213 {
214 }
215
216 // Token: 0x0600054A RID: 1354 RVA: 0x0000981C File Offset: 0x00007A1C
217 internal bool <Unregister>b__0(PlayerEditorConnectionEvents.MessageTypeSubscribers x)
218 {
219 string messageTypeId = x.m_messageTypeId;
220 Guid guid = this.messageId;
221 byte d = this.messageId._d;
222 bool flag;
223 return flag;
224 }
225
226 // Token: 0x04000421 RID: 1057
227 public Guid messageId;
228 }
229
230 // Token: 0x020000FD RID: 253
232 private sealed class <>c__DisplayClass20_0
233 {
234 // Token: 0x0600054B RID: 1355 RVA: 0x00009844 File Offset: 0x00007A44
236 {
237 }
238
239 // Token: 0x0600054C RID: 1356 RVA: 0x00009858 File Offset: 0x00007A58
240 internal void <BlockUntilRecvMsg>b__0(MessageEventArgs args)
241 {
242 this.msgReceived = true;
243 }
244
245 // Token: 0x04000422 RID: 1058
246 public bool msgReceived;
247 }
248 }
249}
class f__AnonymousType0<< Count > j__TPar
void Unregister(Guid messageId, UnityAction< MessageEventArgs > callback)
static void MessageCallbackInternal(IntPtr data, ulong size, ulong guid, string messageId)
void UnregisterDisconnection(UnityAction< int > callback)
static IPlayerEditorConnectionNative connectionNative
void Register(Guid messageId, UnityAction< MessageEventArgs > callback)
void UnregisterManagedCallback(Guid messageId, UnityAction< MessageEventArgs > callback)
List< PlayerEditorConnectionEvents.MessageTypeSubscribers > messageTypeSubscribers
static ScriptableObject CreateInstance(Type type)
byte _d
Definition Guid.cs:537