main.go 784 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package usermanager
  2. func Run() {
  3. mgr = newSlotUserManager()
  4. }
  5. func AddUser(userId int) {
  6. mgr.addUser(userId)
  7. }
  8. func RemoveUser(userId int) {
  9. mgr.removeUser(userId)
  10. }
  11. func AddResult(userId int, gameId int, betAmount int, winAmount int, isFree bool) {
  12. mgr.addResult(userId, gameId, betAmount, winAmount, isFree)
  13. }
  14. func GetUserReturnLevel(userId, gameId, betAmount int) int {
  15. return mgr.getUserReturnLevel(userId, gameId, betAmount)
  16. }
  17. /*
  18. func SetNewbieLowest(gameId int, amount int) {
  19. mgr.setNewbieLowest(gameId, amount)
  20. }
  21. */
  22. func SetMaxNoneFreeCount(gameId, count int) {
  23. mgr.setMaxNoneFreeCount(gameId, count)
  24. }
  25. func Dump(param1 string, param2 string) {
  26. mgr.dump(param1, param2)
  27. }
  28. func IsNewbie(userId int, gameId int) bool {
  29. return mgr.isNewbieUser(userId, gameId)
  30. }