GameDefs.go 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. package slotpanda
  2. import (
  3. "bet24.com/log"
  4. )
  5. const (
  6. COLUMN_COUNT = 5
  7. ROW_COUNT = 3
  8. RESULT_COUNT = 15
  9. GAMEID = 60
  10. GAME_NAME = "bambooslot"
  11. GAME_MESSAGE = "pandaslot"
  12. LogColor = log.Blue
  13. )
  14. type SlotCount struct {
  15. SlotID int
  16. Count int
  17. }
  18. // 中奖连线信息
  19. type Result struct {
  20. SlotID int // 格子ID
  21. SlotCount int // 数量
  22. WinShapeID int // 连线ID
  23. WinRate int // 赢的倍数
  24. }
  25. // 错误码
  26. const (
  27. ErrCode_InvalidBet = 1 // 玩家投注不合理
  28. ErrCode_NotEnoughMoney = 2 // 玩家金币不足
  29. ErrCode_NotExist = 3 // 玩家已退出不存在
  30. )
  31. type SlotPanda_Bet struct {
  32. Amount int
  33. ErrorMsg string
  34. ErrCode int
  35. }
  36. type SlotPanda_Result struct {
  37. BetAmount int // 下注金额
  38. WinAmount int // 共赢金额
  39. Slots []int // 15个格子ID
  40. Lines []Result // 中奖连线
  41. FreeSpinInner int // 如果产生freespin,内圈倍数
  42. FreeSpinOuter int // 如果产生freespin,外圈倍数 不产生为0
  43. Bonus *Bonus
  44. }
  45. type TestSlots struct {
  46. Slots []int
  47. }