SFrameworkDef.cs 1.6 KB

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