blob: cda9c7f1fbcff879561d24e17babd37494e5bb71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
|
using System;
using System.Collections.Generic;
using KKSG;
using XUtliPoolLib;
namespace XMainClient
{
internal class XTeamMember : IComparable<XTeamMember>
{
public ulong uid
{
get
{
return this.briefData.uid;
}
set
{
this.briefData.uid = value;
}
}
public string name
{
get
{
return this.briefData.name;
}
set
{
this.briefData.name = value;
}
}
public RoleType profession
{
get
{
return this.briefData.profession;
}
}
public int level
{
get
{
return this.briefData.level;
}
}
public uint ppt
{
get
{
return this.briefData.ppt;
}
}
public XTeamPosition position
{
get
{
return this.briefData.position;
}
set
{
this.briefData.position = value;
}
}
public ulong guildID
{
get
{
return this.briefData.guildid;
}
set
{
this.briefData.guildid = value;
}
}
public uint vip
{
get
{
return this.briefData.vip;
}
set
{
this.briefData.vip = value;
}
}
public uint paymemberid
{
get
{
return this.briefData.paymemberid;
}
set
{
this.briefData.paymemberid = value;
}
}
public XTeamRelation Relation
{
get
{
return this.briefData.relation;
}
}
public ulong dragonGuildID
{
get
{
return this.briefData.dragonguildid;
}
}
public bool bIsLeader
{
get
{
return this.position == XTeamPosition.TP_LEADER;
}
}
public bool bIsHelper
{
get
{
return this._is_helper;
}
}
public bool bIsTicket
{
get
{
return this._is_ticket;
}
}
public bool IsTarja
{
get
{
return this._tarjatime > 0u;
}
}
public uint ServerID
{
get
{
return this._server_id;
}
}
private XTeamMemberBriefData briefData = new XTeamMemberBriefData();
public ulong entityID;
public int joinIndex;
public ExpTeamMemberState state = ExpTeamMemberState.EXPTEAM_IDLE;
public List<uint> fashion = null;
public OutLook outlook = null;
public uint sceneID;
public int leftCount;
public bool regression = false;
public bool bIsRobot = false;
private bool _is_helper = false;
private bool _is_ticket = false;
private uint _tarjatime = 0u;
private uint _server_id = 0u;
public void SetData(TeamMember data, string leaderName, int joinindex)
{
this.briefData.SetData(data, leaderName);
this.entityID = this.uid;
this.joinIndex = joinindex;
this.state = (ExpTeamMemberState)data.state;
this.fashion = data.fashion;
this.outlook = data.outlook;
this.sceneID = (data.robot ? 1u : data.sceneID);
this.leftCount = (data.robot ? 1 : data.leftcount);
this.briefData.vip = data.vipLevel;
this.bIsRobot = data.robot;
this._is_helper = (data.membertype == TeamMemberType.TMT_HELPER);
this._is_ticket = (data.membertype == TeamMemberType.TMT_USETICKET);
this.briefData.paymemberid = data.paymemberid;
this._tarjatime = data.tarjatime;
this._server_id = data.serverid;
this.regression = data.kingback;
}
public int CompareTo(XTeamMember other)
{
int num = XFastEnumIntEqualityComparer<XTeamPosition>.ToInt(this.position).CompareTo(XFastEnumIntEqualityComparer<XTeamPosition>.ToInt(other.position));
bool flag = num == 0;
if (flag)
{
num = this.joinIndex.CompareTo(other.joinIndex);
}
return num;
}
public static XTeamMember CreateTeamMember(TeamMember data, string leaderName, int joinindex)
{
XTeamMember xteamMember = new XTeamMember();
xteamMember.SetData(data, leaderName, joinindex);
return xteamMember;
}
}
}
|