Game.Settings

This commit is contained in:
Evil Factory
2022-04-14 21:00:08 -03:00
parent c3c233c92f
commit 8238e8058c
@@ -44,6 +44,9 @@ namespace Barotrauma
public ServerSettings ServerSettings => GameMain.Server.ServerSettings;
#endif
public DynValue Settings;
public bool allowWifiChat = false;
public bool overrideTraitors = false;
public bool overrideRespawnSub = false;
@@ -166,6 +169,12 @@ namespace Barotrauma
}
#endif
public LuaGame()
{
LuaUserData.MakeFieldAccessible(UserData.RegisterType(typeof(GameSettings)), "currentConfig");
Settings = UserData.CreateStatic(typeof(GameSettings));
}
public void OverrideTraitors(bool o)
{
overrideTraitors = o;