重构
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user