summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XBigMeleeRankInfo.cs
blob: e653f1244b0151fee50a6155d14a4870a74cf1b1 (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
using System;
using KKSG;
using XUtliPoolLib;

namespace XMainClient
{
	public class XBigMeleeRankInfo : XBaseRankInfo
	{
		public string serverName;

		public uint profession;

		public uint kill;

		public void ProcessData(MayhemRankInfo info)
		{
			this.id = info.roleid;
			this.value = (ulong)info.point;
			this.name = info.name;
			this.serverName = info.svrname;
			this.profession = info.pro;
			this.kill = info.killcount;
		}

		public void InitMyData()
		{
			this.id = XSingleton<XAttributeMgr>.singleton.XPlayerData.RoleID;
			this.value = 0UL;
			this.name = XSingleton<XAttributeMgr>.singleton.XPlayerData.Name;
			this.serverName = XSingleton<XClientNetwork>.singleton.Server;
			this.profession = (uint)XFastEnumIntEqualityComparer<RoleType>.ToInt(XSingleton<XAttributeMgr>.singleton.XPlayerData.Profession);
			this.kill = 0u;
		}
	}
}