From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/DragonGuildShopRecord.cs | 77 ++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs (limited to 'Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs') diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs b/Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs new file mode 100644 index 00000000..d12ebbd0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs @@ -0,0 +1,77 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class DragonGuildShopRecord + { + public ulong RoleId + { + get + { + return this.m_roleId; + } + } + + public string PlayerName + { + get + { + return this.m_name; + } + } + + public string ItemName + { + get + { + return this.m_row.ItemName[0]; + } + } + + public string TimeStr + { + get + { + return this.m_timeStr; + } + } + + public uint BuyCount + { + get + { + return this.m_count; + } + } + + private ulong m_roleId; + + private ItemList.RowData m_row; + + private uint m_count; + + private uint m_time; + + private string m_name; + + private string m_timeStr; + + public DragonGuildShopRecord(DragonGuildShopRecordItem item) + { + this.m_roleId = item.roleid; + this.m_row = XBagDocument.GetItemConf((int)item.itemid); + bool flag = this.m_row == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("can not find this item,itemid = " + item.itemid.ToString(), null, null, null, null, null); + } + this.m_count = item.itemcount; + this.m_name = XTitleDocument.GetTitleWithFormat(item.titleId, item.name); + this.m_time = item.time; + this.m_timeStr = XSingleton.singleton.TimeFormatSince1970((int)item.time, XStringDefineProxy.GetString("TimeFormate"), true); + } + } +} -- cgit v1.1-26-g67d0