2025-08-15 22:44:28 +08:00
|
|
|
package maps
|
|
|
|
|
|
2025-08-16 00:23:43 +08:00
|
|
|
import (
|
2025-10-10 20:46:16 +08:00
|
|
|
"blazing/logic/service/common"
|
2025-09-14 01:35:16 +08:00
|
|
|
"blazing/logic/service/player"
|
2025-08-16 00:23:43 +08:00
|
|
|
"blazing/logic/service/space"
|
|
|
|
|
)
|
2025-08-15 22:44:28 +08:00
|
|
|
|
|
|
|
|
type LeaveMapInboundInfo struct {
|
2025-09-14 01:35:16 +08:00
|
|
|
Head player.TomeeHeader `cmd:"2002" struc:"[0]pad"` //切换地图
|
2025-08-15 22:44:28 +08:00
|
|
|
}
|
2025-08-16 00:23:43 +08:00
|
|
|
|
2025-09-14 01:35:16 +08:00
|
|
|
func (t *LeaveMapInboundInfo) Broadcast(mapid uint32, o space.LeaveMapOutboundInfo) {
|
2025-10-10 20:46:16 +08:00
|
|
|
space.GetSpace(mapid).User.IterCb(func(playerID uint32, player common.PlayerI) {
|
2025-08-17 21:55:15 +08:00
|
|
|
t.Head.Result = 0
|
2025-08-16 00:23:43 +08:00
|
|
|
|
2025-10-10 20:46:16 +08:00
|
|
|
player.SendPack(t.Head.Pack(&o))
|
|
|
|
|
})
|
|
|
|
|
|
2025-08-16 00:23:43 +08:00
|
|
|
}
|