LuaDistributesRetDrawPoolInfo = {}

LuaDistributesRetDrawPoolInfo.sysID = 47
LuaDistributesRetDrawPoolInfo.cmdID = 10

function LuaDistributesRetDrawPoolInfo.ExtraPacket(memStream)
    -- print('ExtraPacket:'..memStream.Length)

	local binaryReader = CS.BinaryMessageHandle.GetLuaPacketReader(memStream)
	local sysID = binaryReader:ReadByte()
	local cmdID = binaryReader:ReadByte()
	packet = LuaDistributesRetDrawPoolInfo.ReadPacket(binaryReader)

	return packet
end

function LuaDistributesRetDrawPoolInfo.SendPacket(packet)
	local message = CS.BinaryMessageHandle.CreateMessage(LuaDistributesRetDrawPoolInfo.sysID, LuaDistributesRetDrawPoolInfo.cmdID)
	if(drawGoodsInfo == nil) then
	drawGoodsInfo = {}
end
message:WriteInt(#packet['drawGoodsInfo'])
for k,v in ipairs(packet['drawGoodsInfo']) do
require "LuaDistributesDrawGoodsInfo"
LuaDistributesDrawGoodsInfo.WritePacket(v, binaryWriter)

end

if(drawMoneyInfo == nil) then
	drawMoneyInfo = {}
end
message:WriteInt(#packet['drawMoneyInfo'])
for k,v in ipairs(packet['drawMoneyInfo']) do
require "LuaDistributesDrawMoneyInfo"
LuaDistributesDrawMoneyInfo.WritePacket(v, binaryWriter)

end

if(packet['resetCount'] == nil) then
	packet['resetCount'] = 0
end
message:WriteInt(packet['resetCount'])

if(packet['tianBoxCount'] == nil) then
	packet['tianBoxCount'] = 0
end
message:WriteInt(packet['tianBoxCount'])


	message:Send()
end

function LuaDistributesRetDrawPoolInfo.ReadPacket(binaryReader)

	local packet = {}
	packet['drawGoodsInfo'] = {}
local drawGoodsInfoCnt = binaryReader:ReadInt32()
for i=1,drawGoodsInfoCnt,1 do
require "LuaDistributesDrawGoodsInfo"
packet['drawGoodsInfo'][i] = LuaDistributesDrawGoodsInfo.ReadPacket(binaryReader)

end
packet['drawMoneyInfo'] = {}
local drawMoneyInfoCnt = binaryReader:ReadInt32()
for i=1,drawMoneyInfoCnt,1 do
require "LuaDistributesDrawMoneyInfo"
packet['drawMoneyInfo'][i] = LuaDistributesDrawMoneyInfo.ReadPacket(binaryReader)

end
packet['resetCount'] = binaryReader:ReadInt32()

packet['tianBoxCount'] = binaryReader:ReadInt32()


	return packet
end