GameDefs.go 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. package rezekislot
  2. const (
  3. COLUMN_COUNT = 5
  4. ROW_COUNT = 3
  5. RESULT_COUNT = 16 //最后一个格子为特殊区域
  6. GAMEID = 58
  7. GAME_NAME = "rezekislot"
  8. GAME_MESSAGE = "rezekislot"
  9. )
  10. // 中奖连线信息
  11. type Result struct {
  12. SlotID int // 格子ID
  13. SlotCount int // 数量
  14. WinShape int // 连线数值 从左到右,从个位数起 111表示第一行3个 1111第一行4个,333第三行三个
  15. WinRate float64 // 赢的倍数
  16. }
  17. // 扇子中奖连线信息
  18. type FanResult struct {
  19. FanID int // 扇子ID
  20. WinAmount int // 共赢金额
  21. IsGrand bool //是否Grand
  22. }
  23. // 消息定义
  24. const (
  25. Msg_Bet = 1 // 下注
  26. Msg_Result = 2 // 发送结果
  27. Msg_Jackpot = 3 // 获取彩池额度
  28. Msg_Slots = 4 // 获取目前使用的Slot类型
  29. Msg_BetLevel = 5 // 下注配置信息
  30. Msg_GetConfig = 6 // 获取配置信息
  31. Msg_Broadcast = 7 // 奖池广播
  32. Msg_Enter = 8 // 进入游戏
  33. Msg_Exit = 9 // 离开游戏
  34. Msg_FreeAdConfig = 10 // 广告配置及自己的剩余
  35. Msg_UseAd = 11 // 看广告后请求免费次数
  36. Msg_FanConfig = 13 // 扇子配置信息
  37. Msg_FreeStatus = 14 // 检查免费状态
  38. )
  39. type RezekiSlot_Message struct {
  40. MsgID int
  41. Data string
  42. }
  43. type RezekiSlot_Bet struct {
  44. Amount int
  45. ErrorMsg string
  46. }
  47. type RezekiSlot_Result struct {
  48. BetAmount int // 下注金额
  49. WinAmount int // 共赢金额
  50. Slots []int // 16个格子ID
  51. Lines []Result // 中奖连线
  52. Fan FanResult // 扇子中间结果
  53. IsFree bool // 这次滚动是否为免费
  54. FreeSpin int // 本次结果获取的免费次数
  55. RemainFreeTime int // 剩余免费次数
  56. JackpotLevel int // 0 无 1 mini 2 minor 3 major 4 grand 这个游戏只有4级
  57. JackpotAmount int // 本次获得奖池奖励,如果是grand,包含奖池的100%
  58. }
  59. type JackPot_Broadcast struct {
  60. UserID int
  61. JackpotLevel int
  62. Amount int
  63. FaceID int
  64. FaceChangeIndex int
  65. FaceUrl string
  66. NickName string
  67. Vip int
  68. Sex int
  69. }
  70. type RezekiSlot_Jackpot struct {
  71. Amount int
  72. }
  73. type RezekiSlot_FreeAdBet struct {
  74. AdCount int
  75. BetAmount int
  76. }
  77. type RezekiSlot_FreeAdConfig struct {
  78. TotalAdCount int // 每日免费次数
  79. AdCount int // 剩余次数
  80. FreeSpinCount int // 看广告后获取的免费次数
  81. Bet int // 本次看视频获得的底注
  82. AdBets []RezekiSlot_FreeAdBet
  83. }
  84. // 下行数据,上行无数据
  85. type RezekiSlot_UsedAd struct {
  86. FreeSpinCount int // 获取免费次数,如果为0 表示没有免费
  87. Bet int // 免费次数的底注
  88. AdCount int // 剩余次数
  89. NextAdBetAmount int // 下次广告的底注
  90. }
  91. type RezekiSlot_FreeStatus struct {
  92. IsFree bool //是否免费
  93. FreeCount int //剩余次数
  94. LastBet int //免费时的下注金额
  95. }