bacwaterpool.go 996 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package bacwaterpool
  2. func Run() {
  3. mgr = newbacWaterPoolMgr()
  4. }
  5. func Dump(param1 string) {
  6. switch param1 {
  7. case "refresh":
  8. mgr.refreshPoolInfo()
  9. return
  10. }
  11. mgr.showPoolInfo(param1)
  12. }
  13. func AddBet(userGold int, betAmount int, isSlots bool, gameId int, roomName string) {
  14. mgr.addBet(userGold, betAmount, isSlots, gameId, roomName)
  15. }
  16. func ReducePool(userGold int, amount int, isSlots bool, gameId int, roomName string) {
  17. mgr.reducePool(userGold, amount, isSlots, gameId, roomName)
  18. }
  19. func GetControlType(userGold int, isSlots bool, gameId int) int {
  20. return mgr.getControlType(userGold, isSlots, gameId)
  21. }
  22. func GetControlProb(userGold int, isSlots bool, gameId int, poolName string) (int, int) {
  23. return mgr.getControlProb(userGold, isSlots, gameId, poolName)
  24. }
  25. func UpdatePool(gameId, waterpoolValue int, poolName string) {
  26. mgr.updatePool(gameId, waterpoolValue, poolName)
  27. }
  28. func GetWaterPoolValue(gameId int, poolName string) int {
  29. return mgr.getWaterPoolValue(gameId, poolName)
  30. }