feat sn 改成 int64

This commit is contained in:
2026-01-30 11:56:11 +08:00
parent 2f2bcf64a9
commit b87858fbf1
5 changed files with 24 additions and 24 deletions

View File

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