EnviromentSetting.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 = "http://101.34.23.118";
  9. public static string[] serverIPs = { "http://127.0.0.1", "http://101.34.23.118" };
  10. //language.json读取和存放
  11. public static string langFilePath = "Data/languages";
  12. public static Dictionary<string, object> languageData = null;
  13. // access Token
  14. public static string accessToken;
  15. public static DateTime accessTokenReceivedTime;
  16. // 不需要access Token的请求
  17. public static string[] accessTokenWhiteList = {
  18. "/api/login/token/",
  19. "/api/game/quick_start/",
  20. "/api/login/"
  21. };
  22. //系统语言 default=en
  23. public static string languageCode = "en";
  24. //操作系统
  25. public static string platform = "NA";
  26. // Unity Unique Id
  27. public static string UUID = null;
  28. // 项目版本
  29. public static string version;
  30. // 狗的数据库
  31. public static string dogDBFilePath = "Data/dogDB";
  32. public static DogBreed[] dogBreeds;
  33. // 最大狗的数量
  34. public static int maxDogQty = 3;
  35. // 运行环境
  36. public static string runEnv = "Release"; // NA, Dev, Release
  37. // 语音识别通过分数
  38. public static float voiceRecognitionScore = 0.6f;
  39. public static float interactTimeoutSec = 10f; // 交互超时
  40. }