LuaDistributesDrawMoneyInfo = {} LuaDistributesDrawMoneyInfo.sysID = 0 LuaDistributesDrawMoneyInfo.cmdID = 0 function LuaDistributesDrawMoneyInfo.ExtraPacket(memStream) -- print('ExtraPacket:'..memStream.Length) local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream) local sysID = binaryReader:ReadByte() local cmdID = binaryReader:ReadByte() packet = LuaDistributesDrawMoneyInfo.ReadPacket(binaryReader) return packet end function LuaDistributesDrawMoneyInfo.SendPacket(packet) local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesDrawMoneyInfo.sysID, LuaDistributesDrawMoneyInfo.cmdID) if(packet['drawCount'] == nil) then packet['drawCount'] = 0 end message:WriteInt(packet['drawCount']) if(packet['moneyType'] == nil) then packet['moneyType'] = 0 end message:WriteInt(packet['moneyType']) if(packet['money'] == nil) then packet['money'] = 0 end message:WriteInt(packet['money']) message:Send() end function LuaDistributesDrawMoneyInfo.ReadPacket(binaryReader) local packet = {} packet['drawCount'] = binaryReader:ReadInt32() packet['moneyType'] = binaryReader:ReadInt32() packet['money'] = binaryReader:ReadInt32() return packet end