SFrameworkDef.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. namespace SFramework
  4. {
  5. public class SFrameworkDef {
  6. // Editor
  7. public const string ResourceDir = "BundleResource";
  8. public const string AssetsBundleExtName = ".s";
  9. public const string AssetsBundleProductDir = "Product/Bundles";
  10. public const string VersionFileName = "version.json";
  11. // ResourceManager
  12. // This is the Update Manager Flag.
  13. public const bool isEnableHotfix = false;
  14. //public const bool isEnableHotfix = true;
  15. public const bool isLoadAssetsBundleOnEditor = false;
  16. //public const bool isLoadAssetsBundleOnEditor = true;
  17. // UpdateManager
  18. public const int httpRequestTimeoutTime = 3;
  19. // Client Request Hotfix Lua Before GameUpdate Every Times.
  20. // So We Should Put The Hotfix Lua On GameServer.
  21. //public const string hotfixLuaUrl = "http://192.168.2.125:21000/files/hotfix.lua";
  22. //public const string hotfixLuaUrl = "http://127.0.0.1:21000/files/hotfix.lua";
  23. public const string hotfixLuaUrl = "http://10.10.100.100:21000/hotfix.lua";
  24. // We should put download server on non-game server like CDN in production mode.
  25. //public const string resourceVersionUrlBase = "http://192.168.2.125:21000/files/Bundles/";
  26. //public const string resourceVersionUrlBase = "http://127.0.0.1:21000/files/Bundles/";
  27. public const string resourceVersionUrlBase = "http://10.10.100.100:21000/Bundles/";
  28. public const string resourceVersionName = "version.json";
  29. }
  30. }