``` refactor(socket): 重构客户端数据处理逻辑,优化玩家信息校验和包处理流程

This commit is contained in:
1
2025-10-30 01:37:53 +00:00
parent bb48f01e94
commit ac75275dff
6 changed files with 78 additions and 78 deletions

View File

@@ -16,8 +16,8 @@ type WalkInInfo struct {
// Point: 直接给坐标xy
Point model.Pos `fieldDesc:"直接给坐标xy"`
// 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: 直接给坐标xy
Point model.Pos `fieldDesc:"直接给坐标xy"`
// Reserve2: 这个字段同C2S_People_Walk中的reserve2
Reserve2 string `struc:"[2]byte"`
PathLen uint32 `struc:"sizeof=Path" `
Path string `struc:"[2]byte"`
}