This commit is contained in:
1
2025-08-28 21:35:56 +00:00
parent 00f38b8c53
commit 79361e68cd
29 changed files with 253 additions and 232 deletions

View File

@@ -1,7 +1,7 @@
package maps
import (
"blazing/common/data/entity"
"blazing/common/data/socket"
"blazing/common/socket/handler"
"blazing/logic/service/space"
)
@@ -17,7 +17,7 @@ type LeaveMapInboundInfo struct {
func (t *LeaveMapInboundInfo) Broadcast(mapid uint32, o LeaveMapOutboundInfo) {
space.GetSpace(mapid).Range(func(playerID uint32, player *entity.Player) bool {
space.GetSpace(mapid).Range(func(playerID uint32, player *socket.Player) bool {
t.Head.Result = 0
player.SendPack(t.Head.Pack(&o))