35 lines
990 B
Plaintext
35 lines
990 B
Plaintext
|
LuaDistributesGainLuckWheelAwardReq = {}
|
||
|
|
||
|
LuaDistributesGainLuckWheelAwardReq.sysID = 54
|
||
|
LuaDistributesGainLuckWheelAwardReq.cmdID = 2
|
||
|
|
||
|
function LuaDistributesGainLuckWheelAwardReq.ExtraPacket(memStream)
|
||
|
-- print('ExtraPacket:'..memStream.Length)
|
||
|
|
||
|
local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream)
|
||
|
local sysID = binaryReader:ReadByte()
|
||
|
local cmdID = binaryReader:ReadByte()
|
||
|
packet = LuaDistributesGainLuckWheelAwardReq.ReadPacket(binaryReader)
|
||
|
|
||
|
return packet
|
||
|
end
|
||
|
|
||
|
function LuaDistributesGainLuckWheelAwardReq.SendPacket(packet)
|
||
|
local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesGainLuckWheelAwardReq.sysID, LuaDistributesGainLuckWheelAwardReq.cmdID)
|
||
|
if(packet['activityId'] == nil) then
|
||
|
packet['activityId'] = 0
|
||
|
end
|
||
|
message:WriteInt(packet['activityId'])
|
||
|
|
||
|
|
||
|
message:Send()
|
||
|
end
|
||
|
|
||
|
function LuaDistributesGainLuckWheelAwardReq.ReadPacket(binaryReader)
|
||
|
|
||
|
local packet = {}
|
||
|
packet['activityId'] = binaryReader:ReadInt32()
|
||
|
|
||
|
|
||
|
return packet
|
||
|
end
|