Files
JJBB/Assets/Project/Script/LuaScripts/NetWork/Lua/Distributes/LuaDistributesReqMoneyTree.txt

35 lines
889 B
Plaintext
Raw Normal View History

2024-08-23 15:49:34 +08:00
LuaDistributesReqMoneyTree = {}
LuaDistributesReqMoneyTree.sysID = 3
LuaDistributesReqMoneyTree.cmdID = 30
function LuaDistributesReqMoneyTree.ExtraPacket(memStream)
-- print('ExtraPacket:'..memStream.Length)
local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream)
local sysID = binaryReader:ReadByte()
local cmdID = binaryReader:ReadByte()
packet = LuaDistributesReqMoneyTree.ReadPacket(binaryReader)
return packet
end
function LuaDistributesReqMoneyTree.SendPacket(packet)
local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesReqMoneyTree.sysID, LuaDistributesReqMoneyTree.cmdID)
if(packet['actID'] == nil) then
packet['actID'] = 0
end
message:WriteInt(packet['actID'])
message:Send()
end
function LuaDistributesReqMoneyTree.ReadPacket(binaryReader)
local packet = {}
packet['actID'] = binaryReader:ReadInt32()
return packet
end