feat(space): 重构地图信息获取逻辑,添加天气系统和BOSS定时任务

This commit is contained in:
1
2025-12-09 16:14:47 +00:00
parent 69d9f9249b
commit c2d37648b3
4 changed files with 121 additions and 81 deletions

View File

@@ -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