using System; using System.Collections.Generic; namespace XMainClient { internal class XRemoveItemEventArgs : XEventArgs { public List uids = new List(); public List types = new List(); public List ids = new List(); public XRemoveItemEventArgs() { this._eDefine = XEventDefine.XEvent_RemoveItem; } public override void Recycle() { base.Recycle(); this.uids.Clear(); this.types.Clear(); this.ids.Clear(); XEventPool.Recycle(this); } public override XEventArgs Clone() { XRemoveItemEventArgs @event = XEventPool.GetEvent(); for (int i = 0; i < this.uids.Count; i++) { @event.uids.Add(this.uids[i]); @event.types.Add(this.types[i]); @event.ids.Add(this.ids[i]); } return @event; } } }