making things more organized, turning Player deprecated, preparing for nlua and using partial classes for additions to another barotrauma classes

This commit is contained in:
Evil Factory
2021-09-10 18:32:19 -03:00
parent 176a24cb43
commit 813aaf29b8
8 changed files with 118 additions and 20 deletions
@@ -197,7 +197,7 @@ namespace Barotrauma.Networking
#endif
}
GameMain.Lua = new LuaSetup();
GameMain.Lua.Initialize();
TickRate = serverSettings.TickRate;
@@ -3844,7 +3844,7 @@ namespace Barotrauma.Networking
{
if (GameMain.Server == null || !GameMain.Server.ServerSettings.SaveServerLogs) { return; }
if(GameMain.Lua != null)
if(GameMain.Lua.hook != null)
GameMain.Lua.hook.Call("serverLog", new object[] { line, messageType });
GameMain.Server.ServerSettings.ServerLog.WriteLine(line, messageType);