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
SaveSynchronisationClient.cs
Go to the documentation of this file.
1using System;
2using Telepathy;
3using Terraria;
4
5// Token: 0x020002C3 RID: 707
7{
8 // Token: 0x0600105F RID: 4191 RVA: 0x00050400 File Offset: 0x0004E600
9 public void Connect(string hostName)
10 {
11 this.Client.Connect(hostName, 5555);
12 }
13
14 // Token: 0x06001060 RID: 4192 RVA: 0x00050420 File Offset: 0x0004E620
15 public void Close()
16 {
17 this.Client.Disconnect();
18 }
19
20 // Token: 0x06001061 RID: 4193 RVA: 0x00050438 File Offset: 0x0004E638
21 private void SendDataFunction(byte[] messageData, int length)
22 {
23 if (!true)
24 {
25 }
26 long num = 0L;
27 ushort num2 = BitConverter.ToUInt16(messageData, (int)num);
28 bool flag = this.Client.Send(messageData, length);
29 }
30
31 // Token: 0x06001062 RID: 4194 RVA: 0x00050478 File Offset: 0x0004E678
32 public void RequestFile(string filename)
33 {
34 if (!true)
35 {
36 }
37 string savePath = Main.SavePath;
38 string text = filename.Replace(savePath, "");
39 }
40
41 // Token: 0x06001063 RID: 4195 RVA: 0x000504F0 File Offset: 0x0004E6F0
42 public void SendFile(string filename)
43 {
44 if (!true)
45 {
46 }
47 string savePath = Main.SavePath;
48 string text = filename.Replace(savePath, "");
49 }
50
51 // Token: 0x06001064 RID: 4196 RVA: 0x00050518 File Offset: 0x0004E718
52 public void Update()
53 {
54 int num = 1;
55 Client client = this.Client;
56 if (num == 0)
57 {
58 return;
59 }
60 Client client2 = this.Client;
61 }
62
63 // Token: 0x06001065 RID: 4197 RVA: 0x000505A0 File Offset: 0x0004E7A0
65 {
66 }
67
68 // Token: 0x04001F42 RID: 8002
69 public Client Client;
70
71 // Token: 0x04001F43 RID: 8003
73}
class f__AnonymousType0<< Count > j__TPar
void SendDataFunction(byte[] messageData, int length)
SaveSynchronisationOperation CurrentOperation
static ushort ToUInt16(byte[] value, int startIndex)
void Connect(string ip, int port)
Definition Client.cs:152
bool Send(byte[] data, int length)
Definition Client.cs:245
void Disconnect()
Definition Client.cs:180
static string SavePath
Definition Main.cs:4045