[Refactor-Minor]

- Refactored interface definition.
- Plugin Loading System Refactor (incomplete).
This commit is contained in:
MapleWheels
2024-12-20 16:17:14 -05:00
committed by Maplewheels
parent 4b2bac7cd8
commit d2b9ca4c1b
16 changed files with 563 additions and 1010 deletions
@@ -43,7 +43,7 @@ namespace Barotrauma
RegisterServices();
// load manifest
if (!_servicesProvider.TryGetService(out IModConfigParserService modConfigSvc))
if (!_servicesProvider.TryGetService(out IModConfigCreatorService modConfigSvc))
throw new NullReferenceException("LuaCsSetup: Failed to get mod config parser service!"); // we should crash here
var luaConfig = modConfigSvc.BuildConfigFromManifest(Directory.GetCurrentDirectory() + LuaCsConfigFile);
if (!luaConfig.IsSuccess)
@@ -421,7 +421,7 @@ namespace Barotrauma
#endif
}
*/
public void Stop()
{
@@ -439,7 +439,7 @@ namespace Barotrauma
IsInitialized = true;
Logger.Log($"Initializing LuaCs, git revision = {AssemblyInfo.GitRevision}");
}*/
}
public void Update()
{