blob: 2443cf0826fbadabca4cfc128a26e03243d5ee2c (
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
|
using System;
using XUtliPoolLib;
namespace XMainClient
{
public class XSpriteRankList : XBaseRankList
{
public XSpriteRankList()
{
this.type = XRankType.SpriteRank;
}
public override XBaseRankInfo CreateNewInfo()
{
return new XSpriteRankInfo();
}
public override XBaseRankInfo GetLatestMyRankInfo()
{
bool flag = this.myRankInfo == null || this.myRankInfo.rank != XRankDocument.INVALID_RANK;
XBaseRankInfo myRankInfo;
if (flag)
{
myRankInfo = this.myRankInfo;
}
else
{
this.myRankInfo.name = XSingleton<XEntityMgr>.singleton.Player.Name;
this.myRankInfo.formatname = XTitleDocument.GetTitleWithFormat(XSingleton<XAttributeMgr>.singleton.XPlayerData.TitleID, this.myRankInfo.name);
uint num = 0u;
XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument<XSpriteSystemDocument>(XSpriteSystemDocument.uuID);
for (int i = 0; i < specificDocument.SpriteList.Count; i++)
{
bool flag2 = specificDocument.isSpriteFight(specificDocument.SpriteList[i].uid);
if (flag2)
{
num += specificDocument.SpriteList[i].PowerPoint;
}
}
this.myRankInfo.value = (ulong)num;
myRankInfo = this.myRankInfo;
}
return myRankInfo;
}
}
}
|