HomeServer/lualib-src/Server-main/AllServer/GameServer/Lottery/TimeLimitLottery.lua

26 lines
772 B
Lua
Raw Normal View History

2024-11-20 15:41:09 +08:00
local skynet = require "skynet"
local oo = require "Class"
local log = require "Log"
local pb = require "pb"
local dataType = require "DataType"
local errorInfo = require "ErrorInfo"
local lottery = require "Lottery"
local TimeLimitLottery = oo.class(lottery)
--初始化数据
function TimeLimitLottery:InitData( player , shopType )
if not player.gameData.shop[ shopType ] then
end
end
--花店展示
function TimeLimitLottery:Show( player , c2sData , s2cData )
c2sData.data = assert(pb.decode("C2SFlowerShopShow", c2sData.data ))
local data = {}
s2cData.cmd = pb.enum("MsgType","CMD_S2C_FlowerShopShow")
s2cData.data = assert(pb.encode("S2CFlowerShopShow", data))
end
skynet.server.timeLimitLottery = TimeLimitLottery
return TimeLimitLottery