feat 修改usn类型为string

This commit is contained in:
2026-01-11 16:16:18 +08:00
parent f5e3acd4d6
commit 48e178e853
6 changed files with 28 additions and 30 deletions

View File

@@ -7,8 +7,8 @@ import (
// PlayerNode 定义玩家节点结构体
type PlayerNode struct {
USN int64 // 用户ID
GatewaySID int64 // 网关服务ID
USN string // 用户ID
GatewaySID string // 网关服务ID
MoveSpeed float32 // 移动速度
Position [2]float32 // 二维坐标 [x, y]
@@ -17,7 +17,7 @@ type PlayerNode struct {
Action []*grpc_pb.ActionReq // 其他操作
}
func NewPlayerNode(gatewaySID int64, usn int64) *PlayerNode {
func NewPlayerNode(gatewaySID string, usn string) *PlayerNode {
return &PlayerNode{
USN: usn,
GatewaySID: gatewaySID,