using System; using System.Collections.Generic; namespace XMainClient { internal struct XEnchantInfo { public bool bHasEnchant { get { return this.AttrList != null && this.AttrList.Count != 0; } } public List AttrList; public int EnchantItemID; public uint ChooseAttr; public List EnchantIDList; public void Init() { bool flag = this.AttrList == null; if (flag) { this.AttrList = new List(); } else { this.AttrList.Clear(); } bool flag2 = this.EnchantIDList == null; if (flag2) { this.EnchantIDList = new List(); } else { this.EnchantIDList.Clear(); } this.EnchantItemID = 0; } } }