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
SaveSynchronisationManager.cs
Go to the documentation of this file.
1using System;
3
4// Token: 0x020002C7 RID: 711
6{
7 // Token: 0x06001073 RID: 4211 RVA: 0x00050978 File Offset: 0x0004EB78
9 {
10 object @lock = this.Lock;
13 {
14 }
15 long num = 0L;
17 if (num == 0L)
18 {
19 }
20 throw new OutOfMemoryException();
21 }
22
23 // Token: 0x06001074 RID: 4212 RVA: 0x000509CC File Offset: 0x0004EBCC
33
34 // Token: 0x06001075 RID: 4213 RVA: 0x00050A04 File Offset: 0x0004EC04
40
41 // Token: 0x06001076 RID: 4214 RVA: 0x00050A2C File Offset: 0x0004EC2C
42 public void Update()
43 {
44 this.server.Update();
45 this.client.Update();
46 }
47
48 // Token: 0x06001077 RID: 4215 RVA: 0x00050A50 File Offset: 0x0004EC50
50 {
51 object @lock = this.Lock;
52 if (this.HostState == SaveSynchronisationManager.ConnectionState.Waiting || this.HostIsConnectedToLocal)
53 {
56 }
57 long num = 0L;
58 if (2 != 0)
59 {
61 }
62 if (num == 0L)
63 {
64 }
65 throw new OutOfMemoryException();
66 }
67
68 // Token: 0x06001078 RID: 4216 RVA: 0x00050AB8 File Offset: 0x0004ECB8
70 {
72 {
73 }
74 }
75
76 // Token: 0x06001079 RID: 4217 RVA: 0x00050AD0 File Offset: 0x0004ECD0
89
90 // Token: 0x0600107A RID: 4218 RVA: 0x00050B18 File Offset: 0x0004ED18
91 public void Shutdown()
92 {
93 if (!true)
94 {
95 }
98 this.server.Server.Stop();
100 }
101
102 // Token: 0x0600107B RID: 4219 RVA: 0x00050B54 File Offset: 0x0004ED54
103 public void Restart()
104 {
105 this.Shutdown();
106 this.Startup();
107 }
108
109 // Token: 0x0600107C RID: 4220 RVA: 0x00050B70 File Offset: 0x0004ED70
110 public void Connect(string connectionAddress)
111 {
112 object @lock = this.Lock;
115 {
117 if (clientState == SaveSynchronisationManager.ConnectionState.Waiting)
118 {
120 return;
121 }
122 }
123 long num = 0L;
125 {
126 Monitor.Exit(@lock);
127 }
128 if (num == 0L)
129 {
130 if (3 == 0)
131 {
132 this.client.Client.Connect(connectionAddress, 5555);
133 }
134 return;
135 }
136 throw new OutOfMemoryException();
137 }
138
139 // Token: 0x0600107D RID: 4221 RVA: 0x00050BE4 File Offset: 0x0004EDE4
141 {
142 }
143
144 // Token: 0x04001F53 RID: 8019
146
147 // Token: 0x04001F54 RID: 8020
149
150 // Token: 0x04001F55 RID: 8021
152
153 // Token: 0x04001F56 RID: 8022
155
156 // Token: 0x04001F57 RID: 8023
158
159 // Token: 0x04001F58 RID: 8024
160 public object Lock;
161
162 // Token: 0x04001F59 RID: 8025
164
165 // Token: 0x04001F5A RID: 8026
167
168 // Token: 0x04001F5B RID: 8027
170
171 // Token: 0x020002C8 RID: 712
172 public enum ConnectionState
173 {
174 // Token: 0x04001F5D RID: 8029
175 Waiting,
176 // Token: 0x04001F5E RID: 8030
178 // Token: 0x04001F5F RID: 8031
180 }
181}
class f__AnonymousType0<< Count > j__TPar
void ProcessClientMessage(SaveSynchronisationOperation.MessageId messageId, byte[] data, SaveSynchronisationOperation.SendDataFunction sendDataFunction)
static SaveSynchronisationManager Instance
SaveSynchronisationManager.ConnectionState ClientState
SaveSynchronisationManager.ConnectionState HostState
void ProcessServerMessage(SaveSynchronisationOperation.MessageId messageId, byte[] data, SaveSynchronisationOperation.SendDataFunction sendDataFunction)
bool AttemptHostConnection(bool isLocalHost)
void Connect(string connectionAddress)
void ProcessMessageResponse(SaveSynchronisationOperation.MessageId messageId, SaveSynchronisationOperation.SendDataFunction sendDataFunction)
void ProcessMessage(SaveSynchronisationOperation.MessageId messageId, byte[] data)
static void Exit(object obj)
Definition Monitor.cs:47
static void Enter(object obj)
Definition Monitor.cs:11
void Connect(string ip, int port)
Definition Client.cs:152
void Disconnect()
Definition Client.cs:180
bool Start(int port)
Definition Server.cs:63
void Stop()
Definition Server.cs:96