GameConst.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. namespace GFGGame
  2. {
  3. //前后端共享类
  4. public class GameConst
  5. {
  6. //这个版本号修改后必须与客户端同步更新,不然老版本的客户端无法登录游戏
  7. public static string SERVER_VERSION = "1.0.5";
  8. /// <summary>
  9. /// unity的一个单位长度对应的像素值
  10. /// </summary>
  11. public const int PIXELS_PER_UNITY_UNIT = 100;
  12. //每日重置时间:小时
  13. public const int DAILY_RESET_HOUR = 5;
  14. //展示充值物品的默认最大时间差
  15. public const int DEFAULT_MAX_ORDER_TIME = 15000;
  16. public const int MAX_COUNT_TO_BUY_DIAMOND_RED = 9990;//单次鲛绡最大购买量
  17. public const int MAX_COUNT_TO_BUY_ITEMS = 99;//单次道具最大购买量
  18. public const int MAX_COUNT_TO_SAVE_SUIT = 6;
  19. public const int MAX_COUNT_EVERY_TYPE_ITEM = 10000;
  20. public const int MAX_SPEED_AUTO_PLAY = 4;
  21. public const float NEXT_WORDS_INTERVAL_MAX = 1f;
  22. public const float POWER_PER_GOLD = 0.5f;
  23. // public const int MAX_GOLD_TO_BUY_POWER_ONCE = 60;
  24. public const int INTERVAL_TIME_SECONDS_POWER = 300;
  25. // public const int GOLD_PER_DIAMOND_PURPLE = 10;
  26. // public const int DIAMOND_RED_PER_DIAMOND_PURPLE = 1;
  27. // public const int MAX_DIAMOND_PURPLE_TO_BUY_GOLD_ONCE = 100;
  28. // public const int MAX_DIAMOND_PURPLE_TO_BUY_DIAMOND_RED_ONCE = 100;
  29. public const int MAX_COUNT_FIGHT_QUICKLY = 10;
  30. public const string VISITOR_ID_KEY = "visitorID";
  31. public const string ACCOUNT_LAST_LOGIN_KEY = "account";
  32. public const string PASSWORD_LAST_LOGIN_KEY = "password";
  33. public const string LAST_LOGIN_IS_VISITOR_KEY = "LAST_LOGIN_IS_VISITOR";
  34. public static readonly string[] CHINESE_NUMBER = { "一", "二", "三", "四", "五", "六", "七", "八", "九", "十" };
  35. public static readonly string[] CHINESE_NUMBER_OLD = { "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖", "拾" };
  36. public static readonly string[] CHINESE_WEEK_NUMBER = { "日", "一", "二", "三", "四", "五", "六" };
  37. //存储权限状态
  38. public const string WRITE_EXTERNAL_STORAGE_FORBIDDEN = "WRITE_EXTERNAL_STORAGE_FORBIDDEN";
  39. }
  40. }