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/XVirtualItemChangedEventArgs.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XVirtualItemChangedEventArgs.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/XVirtualItemChangedEventArgs.cs | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XVirtualItemChangedEventArgs.cs b/Client/Assets/Scripts/XMainClient/XVirtualItemChangedEventArgs.cs new file mode 100644 index 00000000..08e286f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XVirtualItemChangedEventArgs.cs @@ -0,0 +1,38 @@ +using System;
+
+namespace XMainClient
+{
+ internal class XVirtualItemChangedEventArgs : XEventArgs
+ {
+ public ItemEnum e = ItemEnum.VIRTUAL_ITEM_MAX;
+
+ public ulong newValue;
+
+ public ulong oldValue;
+
+ public int itemID;
+
+ public XVirtualItemChangedEventArgs()
+ {
+ this._eDefine = XEventDefine.XEvent_VirtualItemChanged;
+ }
+
+ public override void Recycle()
+ {
+ base.Recycle();
+ this.e = ItemEnum.VIRTUAL_ITEM_MAX;
+ this.newValue = 0UL;
+ this.oldValue = 0UL;
+ XEventPool<XVirtualItemChangedEventArgs>.Recycle(this);
+ }
+
+ public override XEventArgs Clone()
+ {
+ XVirtualItemChangedEventArgs @event = XEventPool<XVirtualItemChangedEventArgs>.GetEvent();
+ @event.newValue = this.newValue;
+ @event.oldValue = this.oldValue;
+ @event.itemID = this.itemID;
+ return @event;
+ }
+ }
+}
|