diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/LuaNetNode.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/LuaNetNode.cs | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/LuaNetNode.cs b/Client/Assets/Scripts/XMainClient/LuaNetNode.cs new file mode 100644 index 00000000..a6f3a19a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LuaNetNode.cs @@ -0,0 +1,54 @@ +using System;
+using XUtliPoolLib;
+
+namespace XMainClient
+{
+ public class LuaNetNode
+ {
+ public bool isRpc = false;
+
+ public uint type;
+
+ public uint tagID;
+
+ public bool isOnlyLua = false;
+
+ public byte[] buffer;
+
+ public int length;
+
+ public bool copyBuffer = true;
+
+ public DelLuaRespond resp;
+
+ public DelLuaError err;
+
+ public void SetBuff(byte[] buf, int length)
+ {
+ bool flag = buf != null && length > 0 && this.buffer != null;
+ if (flag)
+ {
+ for (int i = 0; i < this.buffer.Length; i++)
+ {
+ this.buffer[i] = 0;
+ }
+ bool flag2 = buf != null;
+ if (flag2)
+ {
+ Array.Copy(buf, this.buffer, length);
+ }
+ this.length = length;
+ }
+ }
+
+ public void Reset()
+ {
+ this.isRpc = false;
+ this.type = 0u;
+ this.tagID = 0u;
+ this.length = 0;
+ this.resp = null;
+ this.err = null;
+ }
+ }
+}
|