- Added API to get package by name to PackageManagementService.cs and LuaScriptManagementService.cs

- Added ILuaConfigService to Lua API.
This commit is contained in:
MapleWheels
2026-04-08 11:03:52 -04:00
parent 4c8e016dea
commit 1294ba6dec
7 changed files with 32 additions and 6 deletions
@@ -6,5 +6,7 @@ namespace Barotrauma.LuaCs;
public interface ILuaConfigService : ILuaService
{
FluentResults.Result LoadSavedValueForConfig(ISettingBase setting);
bool TryGetConfig<T>(ContentPackage package, string internalName, out T instance) where T : ISettingBase;
FluentResults.Result SaveConfigValue(ISettingBase setting);
}
@@ -1,6 +1,6 @@
namespace Barotrauma.LuaCs;
public interface ILuaService
public interface ILuaService : IService
{
}