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
JoinRequestSocialModule.cs
Go to the documentation of this file.
1using System;
4using Terraria.Net;
5
7{
8 // Token: 0x02000523 RID: 1315
10 {
11 // Token: 0x0600319F RID: 12703 RVA: 0x001F8AA8 File Offset: 0x001F6CA8
12 public void Initialize()
13 {
15 if (@delegate != null)
16 {
17 return;
18 }
20 if (delegate2 != null)
21 {
22 throw new InvalidCastException();
23 }
24 }
25
26 // Token: 0x060031A0 RID: 12704 RVA: 0x001F8AC4 File Offset: 0x001F6CC4
27 public void Shutdown()
28 {
30 if (@delegate != null)
31 {
32 return;
33 }
35 if (delegate2 != null)
36 {
37 throw new InvalidCastException();
38 }
39 }
40
41 // Token: 0x060031A1 RID: 12705 RVA: 0x001F8AE0 File Offset: 0x001F6CE0
43 {
44 string userId = request.userId;
45 string username = request.username;
46 }
47
48 // Token: 0x060031A2 RID: 12706 RVA: 0x001F8AFC File Offset: 0x001F6CFC
49 private void ReceiveJoinCallback(string secret)
50 {
52 }
53
54 // Token: 0x060031A3 RID: 12707 RVA: 0x001F8B10 File Offset: 0x001F6D10
56 {
57 bool flag = this.CanJoinGame();
59 }
60
61 // Token: 0x060031A4 RID: 12708 RVA: 0x001F8B34 File Offset: 0x001F6D34
62 private bool CanJoinGame()
63 {
64 if (!true)
65 {
66 }
67 return Main.gameMenu;
68 }
69
70 // Token: 0x060031A5 RID: 12709 RVA: 0x001F8B4C File Offset: 0x001F6D4C
72 {
73 }
74
75 // Token: 0x04003B56 RID: 15190
77
78 // Token: 0x02000524 RID: 1316
80 private sealed class <>c__DisplayClass3_0
81 {
82 // Token: 0x060031A6 RID: 12710 RVA: 0x001F8B60 File Offset: 0x001F6D60
84 {
85 }
86
87 // Token: 0x060031A7 RID: 12711 RVA: 0x001F8B74 File Offset: 0x001F6D74
89 {
90 DiscordRpc.Respond(this.userId, DiscordRpc.Reply.Yes);
91 }
92
93 // Token: 0x060031A8 RID: 12712 RVA: 0x001F8B90 File Offset: 0x001F6D90
95 {
96 string text = this.userId;
97 }
98
99 // Token: 0x04003B57 RID: 15191
100 public string userId;
101 }
102 }
103}
class f__AnonymousType0<< Count > j__TPar
static bool gameMenu
Definition Main.cs:2673
Dictionary< NetGroupInfo.InfoProviderId, string > DecomposeInfo(string info)
static void Respond(string userId, DiscordRpc.Reply reply)
void ReceiveJoinRequest(DiscordRpc.DiscordUser request)