feat 修改usn类型为string
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user