``` refactor(socket): 重构客户端数据处理逻辑,优化玩家信息校验和包处理流程
This commit is contained in:
@@ -16,8 +16,8 @@ type WalkInInfo struct {
|
||||
// Point: 直接给坐标x,y
|
||||
Point model.Pos `fieldDesc:"直接给坐标x,y"`
|
||||
|
||||
// Reverse2: 暂定 占位字符2
|
||||
Reverse2 string `struc:"[2]byte"`
|
||||
PathLen uint32 `struc:"sizeof=Path" `
|
||||
Path string `struc:"[2]byte"`
|
||||
}
|
||||
|
||||
func (t *WalkInInfo) Broadcast(mapid uint32, o WalkOutInfo) {
|
||||
@@ -41,6 +41,6 @@ type WalkOutInfo struct {
|
||||
// Point: 直接给坐标x,y
|
||||
Point model.Pos `fieldDesc:"直接给坐标x,y"`
|
||||
|
||||
// Reserve2: 这个字段同C2S_People_Walk中的reserve2
|
||||
Reserve2 string `struc:"[2]byte"`
|
||||
PathLen uint32 `struc:"sizeof=Path" `
|
||||
Path string `struc:"[2]byte"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user