```
refactor(common): 统一使用 common.TomeeHeader 替代 player.TomeeHeader 将多处
This commit is contained in:
@@ -8,13 +8,13 @@ import (
|
||||
)
|
||||
|
||||
func (h Controller) Walk(data *maps.WalkInInfo, c *player.Player) (result *info.WalkOutInfo, err errorcode.ErrorCode) {
|
||||
|
||||
c.GetSpace().Walk(c, info.WalkOutInfo{
|
||||
result = &info.WalkOutInfo{
|
||||
Flag: data.Flag,
|
||||
Point: data.Point,
|
||||
Path: data.Path,
|
||||
UserID: c.Info.UserID,
|
||||
})
|
||||
}
|
||||
c.GetSpace().Walk(c, result)
|
||||
|
||||
c.Info.Pos = data.Point
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user