- Work on LuaCs system state machine.

This commit is contained in:
MapleWheels
2026-01-16 15:06:25 -05:00
committed by Maplewheels
parent 3ddaceb5ac
commit 6362a9c34f
5 changed files with 240 additions and 252 deletions
@@ -17,14 +17,4 @@ partial class LuaCsSetup
SetRunState(RunState.Unloaded);
SetRunState(RunState.Running);
}
private partial bool ShouldRunCs() => IsCsEnabled.Value ||
(GetPackage(new SteamWorkshopId(CsForBarotraumaSteamId.Value), false, false) is { }
&& GameMain.Server.ServerPeer is LidgrenServerPeer);
// ReSharper disable once InconsistentNaming
private static readonly Lazy<bool> isRunningInsideWorkshop = new Lazy<bool>(() =>
Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly()!.Location) !=
Directory.GetCurrentDirectory());
public static bool IsRunningInsideWorkshop => isRunningInsideWorkshop.Value;
}