From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/XMainClient/XAttrData.cs | 54 ++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XAttrData.cs (limited to 'Client/Assets/Scripts/XMainClient/XAttrData.cs') 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 Left + { + get + { + return this.m_Left; + } + } + + public List Right + { + get + { + return this.m_Right; + } + } + + public AttriDataType Type { get; set; } + + private List m_Left = new List(); + + private List m_Right = new List(); + + 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.Recycle(this); + this.Reset(); + } + } +} -- cgit v1.1-26-g67d0