summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/XSwapItemEventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XSwapItemEventArgs.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/XSwapItemEventArgs.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XSwapItemEventArgs.cs b/Client/Assets/Scripts/XMainClient/XSwapItemEventArgs.cs
new file mode 100644
index 00000000..612162b2
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/XSwapItemEventArgs.cs
@@ -0,0 +1,27 @@
+using System;
+
+namespace XMainClient
+{
+ internal class XSwapItemEventArgs : XEventArgs
+ {
+ public XItem itemNowOnBody;
+
+ public XItem itemNowInBag;
+
+ public int slot;
+
+ public XSwapItemEventArgs()
+ {
+ this._eDefine = XEventDefine.XEvent_SwapItem;
+ }
+
+ public override void Recycle()
+ {
+ base.Recycle();
+ this.itemNowOnBody = null;
+ this.itemNowInBag = null;
+ this.slot = 0;
+ XEventPool<XSwapItemEventArgs>.Recycle(this);
+ }
+ }
+}