tribalslot.go 380 B

123456789101112131415161718192021
  1. package TribalSlot
  2. import (
  3. "bet24.com/log"
  4. "bet24.com/servers/games/slotcommon"
  5. )
  6. const LogColor = log.Green
  7. var logic *GameLogic
  8. func Run(slotSink slotcommon.SlotSink) {
  9. logic = NewGameLogic(slotSink)
  10. logic.run()
  11. }
  12. func OnGameMessage(userId int, msg, data string) {
  13. logic.onTribalSlotMessage(userId, msg, data)
  14. }
  15. func OnUserExit(userId int) {
  16. logic.userExit(userId)
  17. }