diff options
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();
+ }
+ }
+}
|