minislot.go 505 B

1234567891011121314151617181920212223242526272829303132333435
  1. package minislot
  2. import (
  3. "bet24.com/log"
  4. "bet24.com/servers/games/slotcommon"
  5. )
  6. const (
  7. GAMEID = 63
  8. GAME_NAME = "minislot"
  9. GAME_MESSAGE = "minislot"
  10. )
  11. const LogColor = log.Blue
  12. var logic *GameLogic
  13. func Run(slotSink slotcommon.SlotSink) {
  14. logic = newGameLogic(slotSink)
  15. }
  16. func OnGameMessage(userId int, msg, data string) {
  17. logic.onMessage(userId, msg, data)
  18. }
  19. type CmdBet struct {
  20. Amount int
  21. }
  22. type CmdBetReturn struct {
  23. CmdBet
  24. PrizeId int
  25. WinAmount int
  26. ErrMsg string
  27. }