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
UserProfile.cs
Go to the documentation of this file.
1using System;
2
4{
5 // Token: 0x0200000E RID: 14
6 public class UserProfile : IUserProfile
7 {
8 // Token: 0x06000016 RID: 22 RVA: 0x00002168 File Offset: 0x00000368
9 public UserProfile()
10 {
11 this.m_UserName = "Uninitialized";
12 this.m_State = UserState.Offline;
13 this.m_ID = "0";
14 this.m_legacyID = "0";
15 }
16
17 // Token: 0x06000017 RID: 23 RVA: 0x000021A4 File Offset: 0x000003A4
18 public UserProfile(string name, string id, bool friend, UserState state, Texture2D image)
19 {
21 this.m_ID = id;
22 this.m_Image = image;
25 }
26
27 // Token: 0x06000018 RID: 24 RVA: 0x000021DC File Offset: 0x000003DC
28 public UserProfile(string name, string teamId, string gameId, bool friend, UserState state, Texture2D image)
29 {
32 this.m_Image = image;
35 }
36
37 // Token: 0x06000019 RID: 25 RVA: 0x00002214 File Offset: 0x00000414
38 public override string ToString()
39 {
40 string id = this.m_ID;
41 if ((id == null || id != null) && (" - " == null || " - " != null))
42 {
43 string userName = this.m_UserName;
44 if ((userName == null || userName != null) && (" - " == null || " - " != null))
45 {
46 bool isFriend = this.m_IsFriend;
47 string text;
48 if ((text == null || text != null) && (" - " == null || " - " != null))
49 {
50 UserState state = this.m_State;
51 string text2;
52 if (text2 == null || text2 != null)
53 {
54 string text3;
55 return text3;
56 }
57 }
58 }
59 }
61 }
62
63 // Token: 0x0600001A RID: 26 RVA: 0x0000228C File Offset: 0x0000048C
64 public void SetUserName(string name)
65 {
67 }
68
69 // Token: 0x0600001B RID: 27 RVA: 0x000022A0 File Offset: 0x000004A0
70 public void SetUserID(string id)
71 {
72 this.m_ID = id;
73 }
74
75 // Token: 0x0600001C RID: 28 RVA: 0x000022B4 File Offset: 0x000004B4
76 public void SetImage(Texture2D image)
77 {
78 this.m_Image = image;
79 }
80
81 // Token: 0x1700000A RID: 10
82 // (get) Token: 0x0600001D RID: 29 RVA: 0x000022C8 File Offset: 0x000004C8
83 public string userName
84 {
85 get
86 {
87 return this.m_UserName;
88 }
89 }
90
91 // Token: 0x1700000B RID: 11
92 // (get) Token: 0x0600001E RID: 30 RVA: 0x000022DC File Offset: 0x000004DC
93 public string id
94 {
95 get
96 {
97 return this.m_ID;
98 }
99 }
100
101 // Token: 0x1700000C RID: 12
102 // (get) Token: 0x0600001F RID: 31 RVA: 0x000022F0 File Offset: 0x000004F0
103 public bool isFriend
104 {
105 get
106 {
107 return this.m_IsFriend;
108 }
109 }
110
111 // Token: 0x1700000D RID: 13
112 // (get) Token: 0x06000020 RID: 32 RVA: 0x00002304 File Offset: 0x00000504
114 {
115 get
116 {
117 return this.m_State;
118 }
119 }
120
121 // Token: 0x0400001B RID: 27
122 protected string m_UserName;
123
124 // Token: 0x0400001C RID: 28
125 protected string m_ID;
126
127 // Token: 0x0400001D RID: 29
128 private string m_legacyID;
129
130 // Token: 0x0400001E RID: 30
131 protected bool m_IsFriend;
132
133 // Token: 0x0400001F RID: 31
135
136 // Token: 0x04000020 RID: 32
138
139 // Token: 0x04000021 RID: 33
140 private string m_gameID;
141 }
142}
class f__AnonymousType0<< Count > j__TPar
UserProfile(string name, string teamId, string gameId, bool friend, UserState state, Texture2D image)
UserProfile(string name, string id, bool friend, UserState state, Texture2D image)