[Add] Hot Reload

This commit is contained in:
2026-02-27 03:16:18 +07:00
parent 5067cb51a1
commit b37579153b
431 changed files with 43054 additions and 1 deletions
@@ -0,0 +1,25 @@
using System.IO;
using UnityEngine;
namespace SingularityGroup.HotReload {
internal static class PackageConst {
//CI changes this property to 'true' for asset store builds.
//Don't touch unless you know what you are doing
public static bool IsAssetStoreBuild => true;
public const string Version = "1.13.17";
// Never higher than Version
// Used for the download
public const string ServerVersion = "1.13.17";
public const string PackageName = "com.singularitygroup.hotreload";
public const string DefaultLocale = Localization.Locale.English;
// avoids unreachable code warnings from using const
public static string DefaultLocaleField = DefaultLocale;
public static readonly string LibraryCachePath = MultiplayerPlaymodeHelper.PathToMainProject("Library/" + PackageName);
public const string ConfigFileName = "hot-reload-config.json";
public static readonly string ConfigFilePath = Path.Combine(MultiplayerPlaymodeHelper.PathToMainProject(ConfigFileName));
public const string ServerInfoFileName = "serverinfo.json";
public static readonly string ServerInfoFilePath = Path.Combine(LibraryCachePath, ServerInfoFileName);
}
}