EnviromentSetting.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System;
  2. using System.Collections.Generic;
  3. /* 本文件包含EnviromentSetting 主要功能上游戏运行环境设定
  4. */
  5. public static class EnviromentSetting
  6. {
  7. // 服务器ip 正式发布需要替换掉ip
  8. public static string serverIP = string.Empty;
  9. public static string[] serverIPs = { "http://127.0.0.1", "http://101.34.23.118" };
  10. public static string devServerIP = "http://101.34.23.118";
  11. //language.json读取和存放
  12. public static string langFilePath = "Data/languages";
  13. public static Dictionary<string, object> languageData = null;
  14. // access Token
  15. public static string accessToken;
  16. public static DateTime accessTokenReceivedTime;
  17. // 不需要access Token的请求
  18. public static string[] accessTokenWhiteList = {
  19. "/api/login/token/",
  20. "/api/game/quick_start/",
  21. "/api/login/",
  22. "/api/reset/password/step1/",
  23. "/api/reset/password/step2/"
  24. };
  25. //系统语言 default=en
  26. public static string languageCode = "en";
  27. //操作系统
  28. public static string platform = "NA";
  29. // Unity Unique Id
  30. public static string UUID = null;
  31. // 项目版本
  32. public static string version;
  33. // 狗的数据库
  34. public static string dogDBFilePath = "Data/dogDB";
  35. public static DogBreed[] dogBreeds;
  36. // 最大狗的数量
  37. public static int maxDogQty = 3;
  38. // 运行环境
  39. public static string runEnv = "Release"; // NA, Dev, Release
  40. // 语音识别通过分数
  41. public static float voiceRecognitionScore = 0.6f;
  42. public static float interactTimeoutSec = 10f; // 交互超时
  43. }