2021-11-11 10:06:49 +08:00
|
|
|
LingMaiMiJingManager = {}
|
|
|
|
local this = LingMaiMiJingManager
|
|
|
|
|
|
|
|
function this.Initialize()
|
2021-11-11 14:28:02 +08:00
|
|
|
this.state = 1
|
|
|
|
this.startTime = 1636601615
|
|
|
|
this.endTime = 1636646400
|
|
|
|
this.myPlaceId = 3
|
|
|
|
this.rankData = {
|
|
|
|
[1] = {playerId = 1,playerName = "我叫1",placeId = 1},
|
|
|
|
[2] = {playerId = 2,playerName = "我叫2",placeId = 2},
|
|
|
|
[3] = {playerId = 3,playerName = "我叫3",placeId = 3},
|
|
|
|
[4] = {playerId = 4,playerName = "我叫4",placeId = 4},
|
|
|
|
[5] = {playerId = 5,playerName = "我叫5",placeId = 5},
|
|
|
|
}
|
2021-11-11 10:06:49 +08:00
|
|
|
end
|
|
|
|
|
2021-11-11 14:28:02 +08:00
|
|
|
--获取服务器发来的信息
|
|
|
|
function this.GetLingMaiServerData(msg)
|
|
|
|
this.state = msg.state
|
|
|
|
this.startTime = msg.state.startTime
|
|
|
|
this.endTime = msg.state.endTime
|
|
|
|
this.myPlaceId = msg.myPlaceId
|
|
|
|
this.rankData = msg.rankData
|
|
|
|
Game.GlobalEvent:DispatchEvent(GameEvent.LingMaiMiJing.RefreshPanel)
|
|
|
|
end
|
2021-11-11 10:06:49 +08:00
|
|
|
|
|
|
|
return LingMaiMiJingManager
|