diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/XAttrData.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XAttrData.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/XAttrData.cs | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XAttrData.cs b/Client/Assets/Scripts/XMainClient/XAttrData.cs new file mode 100644 index 00000000..c9c4ba0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrData.cs @@ -0,0 +1,54 @@ +using System;
+using System.Collections.Generic;
+
+namespace XMainClient
+{
+ internal class XAttrData : XDataBase
+ {
+ public string Title { get; set; }
+
+ public string StrEmpty { get; set; }
+
+ public List<string> Left
+ {
+ get
+ {
+ return this.m_Left;
+ }
+ }
+
+ public List<string> Right
+ {
+ get
+ {
+ return this.m_Right;
+ }
+ }
+
+ public AttriDataType Type { get; set; }
+
+ private List<string> m_Left = new List<string>();
+
+ private List<string> m_Right = new List<string>();
+
+ public void Reset()
+ {
+ this.m_Left.Clear();
+ this.m_Right.Clear();
+ this.Title = string.Empty;
+ this.StrEmpty = string.Empty;
+ }
+
+ public override void Init()
+ {
+ base.Init();
+ this.Reset();
+ }
+
+ public override void Recycle()
+ {
+ XDataPool<XAttrData>.Recycle(this);
+ this.Reset();
+ }
+ }
+}
|