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/XEventArgs.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XEventArgs.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/XEventArgs.cs | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XEventArgs.cs b/Client/Assets/Scripts/XMainClient/XEventArgs.cs new file mode 100644 index 00000000..80ffe042 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEventArgs.cs @@ -0,0 +1,80 @@ +using System;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ internal abstract class XEventArgs
+ {
+ public bool ManualRecycle { get; set; }
+
+ public XObject Firer
+ {
+ get
+ {
+ return this._firer;
+ }
+ set
+ {
+ this._firer = value;
+ }
+ }
+
+ public XEventDefine ArgsDefine
+ {
+ get
+ {
+ return this._eDefine;
+ }
+ }
+
+ public long Token
+ {
+ get
+ {
+ return this._token;
+ }
+ set
+ {
+ this._token = value;
+ }
+ }
+
+ public bool DepracatedPass
+ {
+ get
+ {
+ return this._depracatedPass;
+ }
+ set
+ {
+ this._depracatedPass = value;
+ }
+ }
+
+ protected XEventDefine _eDefine = XEventDefine.XEvent_Invalid;
+
+ protected long _token = 0L;
+
+ protected XObject _firer = null;
+
+ protected bool _depracatedPass = false;
+
+ public XEventArgs()
+ {
+ this._token = XSingleton<XCommon>.singleton.UniqueToken;
+ this.ManualRecycle = false;
+ }
+
+ public virtual void Recycle()
+ {
+ this._token = 0L;
+ this._firer = null;
+ this._depracatedPass = false;
+ }
+
+ public virtual XEventArgs Clone()
+ {
+ return null;
+ }
+ }
+}
|