feat sc改名ss

This commit is contained in:
2026-01-12 12:20:11 +08:00
parent 0fd52a0c8f
commit 07ef114e04
5 changed files with 16 additions and 14 deletions

View File

@@ -2,7 +2,7 @@ package npc
import (
"git.hlsq.asia/mmorpg/service-common/proto/rs/grpc_pb"
"git.hlsq.asia/mmorpg/service-common/proto/sc/sc_pb"
"git.hlsq.asia/mmorpg/service-common/proto/ss/ss_pb"
)
// PlayerNode 定义玩家节点结构体
@@ -36,11 +36,11 @@ func (p *PlayerNode) AddAction(e *grpc_pb.ActionReq) {
// return 是否更新玩家状态
func (p *PlayerNode) LogicAction(delta int64) bool {
for _, a := range p.Action {
switch sc_pb.ActionID(a.Action) {
case sc_pb.ActionID_ACTION_ID_MOVE:
switch ss_pb.ActionID(a.Action) {
case ss_pb.ActionID_ACTION_ID_MOVE:
p.MoveDirection = [2]int8{int8(a.DirX), int8(a.DirY)}
p.MoveCount = 0
case sc_pb.ActionID_ACTION_ID_ATTACK:
case ss_pb.ActionID_ACTION_ID_ATTACK:
}
}
p.Action = make([]*grpc_pb.ActionReq, 0)