updated: hot reload to 1.13.7

This commit is contained in:
Chris
2025-07-09 23:24:14 -04:00
parent 236f9ea5df
commit 7641b83b6a
45 changed files with 2018 additions and 462 deletions

View File

@@ -6,8 +6,15 @@ namespace SingularityGroup.HotReload.Editor {
private const string LastPatchIdKey = "HotReloadWindow.LastPatchId";
private const string ShowingRedDotKey = "HotReloadWindow.ShowingRedDot";
private const string ShowedEditorsWithoutHRKey = "HotReloadWindow.ShowedEditorWithoutHR";
private const string ShowedFieldInitializerWithSideEffectsKey = "HotReloadWindow.ShowedFieldInitializerWithSideEffects";
private const string ShowedAddMonobehaviourMethodsKey = "HotReloadWindow.ShowedAddMonobehaviourMethods";
private const string ShowedFieldInitializerExistingInstancesEditedKey = "HotReloadWindow.ShowedFieldInitializerExistingInstancesEdited";
private const string ShowedFieldInitializerExistingInstancesUneditedKey = "HotReloadWindow.ShowedFieldInitializerExistingInstancesUnedited";
private const string RecompiledUnsupportedChangesOnExitPlaymodeKey = "HotReloadWindow.RecompiledUnsupportedChangesOnExitPlaymode";
private const string RecompiledUnsupportedChangesInPlaymodeKey = "HotReloadWindow.RecompiledUnsupportedChangesInPlaymode";
private const string EditorCodePatcherInitKey = "HotReloadWindow.EditorCodePatcherInit";
private const string ShowedDebuggerCompatibilityKey = "HotReloadWindow.ShowedDebuggerCompatibility";
public static int ServerPort {
get { return SessionState.GetInt(ServerPortKey, RequestHelper.defaultPort); }
@@ -29,6 +36,26 @@ namespace SingularityGroup.HotReload.Editor {
set { SessionState.SetBool(ShowedEditorsWithoutHRKey, value); }
}
public static bool ShowedFieldInitializerWithSideEffects {
get { return SessionState.GetBool(ShowedFieldInitializerWithSideEffectsKey, false); }
set { SessionState.SetBool(ShowedFieldInitializerWithSideEffectsKey, value); }
}
public static bool ShowedAddMonobehaviourMethods {
get { return SessionState.GetBool(ShowedAddMonobehaviourMethodsKey, false); }
set { SessionState.SetBool(ShowedAddMonobehaviourMethodsKey, value); }
}
public static bool ShowedFieldInitializerExistingInstancesEdited {
get { return SessionState.GetBool(ShowedFieldInitializerExistingInstancesEditedKey, false); }
set { SessionState.SetBool(ShowedFieldInitializerExistingInstancesEditedKey, value); }
}
public static bool ShowedFieldInitializerExistingInstancesUnedited {
get { return SessionState.GetBool(ShowedFieldInitializerExistingInstancesUneditedKey, false); }
set { SessionState.SetBool(ShowedFieldInitializerExistingInstancesUneditedKey, value); }
}
public static bool RecompiledUnsupportedChangesOnExitPlaymode {
get { return SessionState.GetBool(RecompiledUnsupportedChangesOnExitPlaymodeKey, false); }
set { SessionState.SetBool(RecompiledUnsupportedChangesOnExitPlaymodeKey, value); }
@@ -38,6 +65,16 @@ namespace SingularityGroup.HotReload.Editor {
get { return SessionState.GetBool(RecompiledUnsupportedChangesInPlaymodeKey, false); }
set { SessionState.SetBool(RecompiledUnsupportedChangesInPlaymodeKey, value); }
}
public static bool EditorCodePatcherInit {
get { return SessionState.GetBool(EditorCodePatcherInitKey, false); }
set { SessionState.SetBool(EditorCodePatcherInitKey, value); }
}
public static bool ShowedDebuggerCompatibility {
get { return SessionState.GetBool(ShowedDebuggerCompatibilityKey, false); }
set { SessionState.SetBool(ShowedDebuggerCompatibilityKey, value); }
}
}
}