- Completed most of PackageManagementService.cs

- Some areas of code need to be rewritten for the simplified loading and execution process.
This commit is contained in:
MapleWheels
2026-01-13 14:14:32 -05:00
committed by Maplewheels
parent 0438d3c4ba
commit 0bfceacaf3
11 changed files with 310 additions and 626 deletions
@@ -10,6 +10,7 @@ using System.Security.AccessControl;
using Barotrauma.LuaCs.Services;
using Barotrauma.Networking;
using FluentResults;
using OneOf.Types;
namespace Barotrauma.LuaCs.Data;
@@ -224,3 +225,20 @@ public record LuaScriptServicesConfig : ILuaScriptServicesConfig
public bool IsDisposed => false;
}
// --- Package Management Service
public interface IPackageManagementServiceConfig : IService
{
bool IsCsEnabled { get; }
}
public class PackageManagementServiceConfig : IPackageManagementServiceConfig
{
public void Dispose()
{
// ignored
}
public bool IsDisposed => false;
public bool IsCsEnabled => true;
}