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

42 lines
1012 B
Plaintext
Raw Normal View History

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