Compare commits
2 Commits
b9191e0538
...
ac608b4a44
Author | SHA1 | Date |
---|---|---|
|
ac608b4a44 | |
|
1fff8b2ebb |
|
@ -529,7 +529,7 @@ func (this *PlayGame) OnPlayerOp(s *base.Scene, p *base.Player, opcode int, para
|
|||
case rule.ClawDollPlayerOpGo:
|
||||
|
||||
pack := &machine.SMDollMachineGrab{
|
||||
Snid: proto.Int32(playerEx.SnId),
|
||||
Snid: proto.Int32(p.SnId),
|
||||
Id: proto.Int32(int32(sceneEx.machineId)),
|
||||
TypeId: proto.Int32(int32(1)),
|
||||
}
|
||||
|
@ -537,6 +537,14 @@ func (this *PlayGame) OnPlayerOp(s *base.Scene, p *base.Player, opcode int, para
|
|||
sceneEx.SendToMachine(int(machine.DollMachinePacketID_PACKET_SMDollMachineGrab), pack)
|
||||
case rule.ClawDollPlayerOpMove:
|
||||
|
||||
// 1-前 2-后 3-左 4-右 5-投币
|
||||
pack := &machine.SMDollMachineoPerate{
|
||||
Snid: proto.Int32(p.SnId),
|
||||
Id: proto.Int32(int32(sceneEx.machineId)),
|
||||
Perate: proto.Int32(int32(params[0])),
|
||||
}
|
||||
|
||||
sceneEx.SendToMachine(int(machine.DollMachinePacketID_PACKET_SMDollMachinePerate), pack)
|
||||
}
|
||||
|
||||
return false
|
||||
|
|
|
@ -19,6 +19,7 @@ import (
|
|||
|
||||
// game
|
||||
_ "mongo.games.com/game/gamesrv/chess"
|
||||
_ "mongo.games.com/game/gamesrv/clawdoll"
|
||||
_ "mongo.games.com/game/gamesrv/fishing"
|
||||
_ "mongo.games.com/game/gamesrv/smallrocket"
|
||||
_ "mongo.games.com/game/gamesrv/thirteen"
|
||||
|
|
Loading…
Reference in New Issue