Constants.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using Telegram.Bot.Types.Payments;
  4. namespace MafiaTelegramBot.Resources
  5. {
  6. public static class Constants
  7. {
  8. public const bool DEBUG = false;
  9. public const int PLAYER_LIMITS_MIN = DEBUG ? 1 : 6;
  10. public const int MEMORY_CLEANER_INTERVAL = 60 * 60 * 1000;
  11. public const int MEMORY_CLEANER_PLAYERS_COUNT = DEBUG ? 1 : 6;
  12. // ReSharper disable once InconsistentNaming
  13. public static readonly TimeSpan PLAYER_INACTIVE_INTERVAL = new(0, 40, 0);
  14. public const int MINUTES_UNTIL_DISSOLVE = 10;
  15. public const int MAX_SHOWING_ROOMS = 10;
  16. public const string SHOP_CURRENCY = "RUB";
  17. // ReSharper disable once InconsistentNaming
  18. public static List<LabeledPrice> RANDOM_ROLE_PRICE = new()
  19. {
  20. new LabeledPrice {Label = "100 рублей", Amount = 10000}
  21. };
  22. public const bool ENABLE_AUTO_VOTING = !DEBUG;
  23. public const int FIRST_NIGHT_INTERVAL = DEBUG ? 1*1000 : 10 * 1000;
  24. public const int PUT_UP_VOTE_INTERVAL = DEBUG ? 1*1000 : 20 * 1000;
  25. public const int VOTE_KILL_INTERVAL = DEBUG ? 1*1000 : 20 * 1000;
  26. public const int NIGHT_ACTION_INTERVAL = DEBUG ? 1*1000 : 60 * 1000;
  27. public const int DEFENCE_INTERVAL = DEBUG ? 1*1000 : 30 * 1000;
  28. public const int DAY_SPEAK_INTERVAL = DEBUG ? 1*1000 : 60 * 1000;
  29. public const int DISPATCH_SPEAK_INTERVAL = DEBUG ? 1*1000 : 60 * 1000;
  30. public const int DISCUSSION_INTERVAL = DEBUG ? 1*1000 : 60 * 1000;
  31. public const int ROOM_CODE_LENGTH = 6;
  32. public const int PUBLIC = 0;
  33. public const int PRIVATE = 1;
  34. public const int STANDARD = 0;
  35. public const int EXTENDED = 1;
  36. public const int NORMAL = 0;
  37. public const int RANKING = 1;
  38. }
  39. }