update docs and register Upgrade

This commit is contained in:
Evil Factory
2021-12-07 17:52:41 -03:00
parent b4b5325c7b
commit d078b3e2fe
6 changed files with 497 additions and 2 deletions
@@ -384,7 +384,7 @@ namespace Barotrauma
lua.Globals["Timer"] = new LuaTimer(this);
lua.Globals["File"] = UserData.CreateStatic<LuaFile>();
lua.Globals["Networking"] = networking;
#if SERVER
#elif CLIENT
@@ -402,7 +402,7 @@ namespace Barotrauma
lua.Globals["SERVER"] = isServer;
lua.Globals["CLIENT"] = !isServer;
// LuaDocs.GenerateDocsAll();
LuaDocs.GenerateDocsAll();
if (File.Exists("Lua/LuaSetup.lua")) // try the default loader
DoFile("Lua/LuaSetup.lua");