better addon structure
This commit is contained in:
@@ -113,7 +113,14 @@ namespace Barotrauma
|
|||||||
lua.Globals["Random"] = new LuaRandom();
|
lua.Globals["Random"] = new LuaRandom();
|
||||||
lua.Globals["Timer"] = new LuaTimer(this);
|
lua.Globals["Timer"] = new LuaTimer(this);
|
||||||
|
|
||||||
luaScriptLoader.RunFolder("Lua/autorun");
|
foreach (string d in Directory.GetDirectories("Lua"))
|
||||||
|
{
|
||||||
|
if (Directory.Exists(d + "/autorun"))
|
||||||
|
{
|
||||||
|
luaScriptLoader.RunFolder(d + "/autorun");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user