blob: 86f9d1aadf6fdf1cdc8ca5fe18ce484edbe6f452 (
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
|
using System;
using KKSG;
using XMainClient.UI;
using XUtliPoolLib;
namespace XMainClient
{
internal class GuildInheritInfo
{
public ulong uid;
public string name;
public uint level;
public uint time;
public uint sceneId;
public void Set(InheritData info)
{
this.uid = info.roleId;
this.name = info.name;
this.time = info.time;
this.level = info.lvl;
this.sceneId = 4u;
}
public string GetLevelString()
{
return string.Format("Lv.{0}", this.level);
}
public string GetTimeString()
{
return XSingleton<UiUtility>.singleton.TimeAgoFormatString((int)this.time);
}
public string GetSceneName()
{
SceneTable.RowData sceneData = XSingleton<XSceneMgr>.singleton.GetSceneData(this.sceneId);
return (sceneData == null) ? string.Empty : sceneData.Comment;
}
}
}
|