summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs77
1 files changed, 77 insertions, 0 deletions
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<XDebug>.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<UiUtility>.singleton.TimeFormatSince1970((int)item.time, XStringDefineProxy.GetString("TimeFormate"), true);
+ }
+ }
+}