feat(space): 重构地图信息获取逻辑,添加天气系统和BOSS定时任务
This commit is contained in:
@@ -52,11 +52,9 @@ func (h *Controller) MapLeave(data *maps.LeaveMapInboundInfo, c *player.Player)
|
||||
func (h *Controller) MapList(data *maps.ListMapPlayerInboundInfo, c *player.Player) (result *info.ListMapPlayerOutboundInfo, err errorcode.ErrorCode) { //这个时候player应该是空的
|
||||
atomic.StoreUint32(&c.Canmon, 2)
|
||||
|
||||
if atomic.LoadUint32(&c.GetSpace().TimeBoss.Flag) == 1 {
|
||||
defer c.SendPackCmd(2022, &c.GetSpace().TimeBoss)
|
||||
}
|
||||
|
||||
result = &info.ListMapPlayerOutboundInfo{
|
||||
Player: c.GetSpace().GetInfo(),
|
||||
Player: c.GetSpace().GetInfo(c),
|
||||
}
|
||||
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user