proto修改
This commit is contained in:
parent
bf4ca7477c
commit
6bbe98bd7e
|
|
@ -3,7 +3,7 @@ package clawdoll
|
||||||
import (
|
import (
|
||||||
"mongo.games.com/game/gamesrv/action"
|
"mongo.games.com/game/gamesrv/action"
|
||||||
"mongo.games.com/game/protocol/clawdoll"
|
"mongo.games.com/game/protocol/clawdoll"
|
||||||
"mongo.games.com/game/protocol/dollmachine"
|
"mongo.games.com/game/protocol/machine"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"mongo.games.com/goserver/core"
|
"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)
|
sceneEx.OnPlayerSCOp(p, opcode, clawdoll.OpResultCode_OPRC_Success, params)
|
||||||
case rule.ClawDollPlayerOpGo:
|
case rule.ClawDollPlayerOpGo:
|
||||||
pack := &dollmachine.SMDollMachineMove{
|
pack := &machine.SMDollMachineGrab{
|
||||||
Snid: proto.Int32(playerEx.SnId),
|
Snid: proto.Int32(playerEx.SnId),
|
||||||
Id: proto.Int32(int32(opcode)),
|
Id: proto.Int32(int32(opcode)),
|
||||||
Direction: proto.Int32(int32(params[0])),
|
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:
|
case rule.ClawDollPlayerOpMove:
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue