proto修改

This commit is contained in:
by 2024-08-13 14:34:57 +08:00
parent bf4ca7477c
commit 6bbe98bd7e
1 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@ package clawdoll
import (
"mongo.games.com/game/gamesrv/action"
"mongo.games.com/game/protocol/clawdoll"
"mongo.games.com/game/protocol/dollmachine"
"mongo.games.com/game/protocol/machine"
"time"
"mongo.games.com/goserver/core"
@ -526,13 +526,13 @@ func (this *PlayGame) OnPlayerOp(s *base.Scene, p *base.Player, opcode int, para
sceneEx.OnPlayerSCOp(p, opcode, clawdoll.OpResultCode_OPRC_Success, params)
case rule.ClawDollPlayerOpGo:
pack := &dollmachine.SMDollMachineMove{
Snid: proto.Int32(playerEx.SnId),
Id: proto.Int32(int32(opcode)),
Direction: proto.Int32(int32(params[0])),
pack := &machine.SMDollMachineGrab{
Snid: proto.Int32(playerEx.SnId),
Id: proto.Int32(int32(opcode)),
TypeId: proto.Int32(int32(params[0])),
}
sceneEx.SendToMachine(int(dollmachine.DollMachinePacketID_PACKET_SMDollMachineMove), pack)
sceneEx.SendToMachine(int(machine.DollMachinePacketID_PACKET_SMDollMachineGrab), pack)
case rule.ClawDollPlayerOpMove:
}