From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/GuildInheritInfo.cs | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/GuildInheritInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/GuildInheritInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/GuildInheritInfo.cs b/Client/Assets/Scripts/XMainClient/GuildInheritInfo.cs new file mode 100644 index 00000000..86f9d1aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildInheritInfo.cs @@ -0,0 +1,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.singleton.TimeAgoFormatString((int)this.time); + } + + public string GetSceneName() + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this.sceneId); + return (sceneData == null) ? string.Empty : sceneData.Comment; + } + } +} -- cgit v1.1-26-g67d0