Skip to content

Commit

Permalink
Actually just disable default systems alltogether
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexejhero committed Aug 23, 2024
1 parent ce52f7c commit 8577d26
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion Laboratory/Config/GameConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ public static class GameConfig
public static bool DisableTaskPanel { get; set; } = true;
public static bool DisableIntroCutscene { get; set; } = true;
public static bool DisableVents { get; set; } = true;
public static bool EnableDefaultSystems { get; set; } = true;
}
5 changes: 0 additions & 5 deletions Laboratory/Systems/DefaultSystems/CounterSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ namespace Laboratory.Systems.DefaultSystems;
[RegisterInIl2Cpp(typeof(ISystemType))]
public class CounterSystem : Object, ICustomSystemType
{
static CounterSystem()
{
if (GameConfig.EnableDefaultSystems) CustomSystemType.Register<CounterSystem>();
}

public static int GetCount(uint key)
{
Instance!.Counters.TryGetValue(key, out int res);
Expand Down
5 changes: 0 additions & 5 deletions Laboratory/Systems/DefaultSystems/HealthSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ namespace Laboratory.Systems.DefaultSystems;
[RegisterInIl2Cpp(typeof(ISystemType))]
public class HealthSystem : Object, ICustomSystemType
{
static HealthSystem()
{
if (GameConfig.EnableDefaultSystems) CustomSystemType.Register<HealthSystem>();
}

/// <summary>
/// The starting and maximum health of each player
/// </summary>
Expand Down
5 changes: 0 additions & 5 deletions Laboratory/Systems/DefaultSystems/ProgressSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ namespace Laboratory.Systems.DefaultSystems;
[RegisterInIl2Cpp(typeof(ISystemType))]
public class ProgressSystem : Object, ICustomSystemType
{
static ProgressSystem()
{
if (GameConfig.EnableDefaultSystems) CustomSystemType.Register<ProgressSystem>();
}

private static ProgressSystem _instance;
public static ProgressSystem Instance => ShipStatus.Instance ? _instance : null;
public static float[] Stages { get; set; } = {
Expand Down

0 comments on commit 8577d26

Please sign in to comment.