- 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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user