Added ability to add mods

This commit is contained in:
Pax1601
2023-12-08 11:54:12 +01:00
parent 564a650403
commit 187b9be57a
5 changed files with 23 additions and 2 deletions

View File

@@ -59,6 +59,9 @@ extern "C" DllExport int coreInit(lua_State* L, const char* path)
log("Initializing core.dll with instance path " + instancePath);
sessionHash = random_string(16);
log("Random session hash " + sessionHash);
unitsManager = new UnitsManager(L);
weaponsManager = new WeaponsManager(L);
server = new Server(L);

View File

@@ -42,4 +42,5 @@ void registerLuaFunctions(lua_State* L)
executeLuaScript(L, instancePath + "..\\Scripts\\OlympusCommand.lua");
executeLuaScript(L, instancePath + "..\\Scripts\\unitPayloads.lua");
executeLuaScript(L, instancePath + "..\\Scripts\\templates.lua");
executeLuaScript(L, instancePath + "..\\Scripts\\mods.lua");
}