Game.Settings
This commit is contained in:
@@ -44,6 +44,9 @@ namespace Barotrauma
|
|||||||
public ServerSettings ServerSettings => GameMain.Server.ServerSettings;
|
public ServerSettings ServerSettings => GameMain.Server.ServerSettings;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
public DynValue Settings;
|
||||||
|
|
||||||
|
|
||||||
public bool allowWifiChat = false;
|
public bool allowWifiChat = false;
|
||||||
public bool overrideTraitors = false;
|
public bool overrideTraitors = false;
|
||||||
public bool overrideRespawnSub = false;
|
public bool overrideRespawnSub = false;
|
||||||
@@ -166,6 +169,12 @@ namespace Barotrauma
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
public LuaGame()
|
||||||
|
{
|
||||||
|
LuaUserData.MakeFieldAccessible(UserData.RegisterType(typeof(GameSettings)), "currentConfig");
|
||||||
|
Settings = UserData.CreateStatic(typeof(GameSettings));
|
||||||
|
}
|
||||||
|
|
||||||
public void OverrideTraitors(bool o)
|
public void OverrideTraitors(bool o)
|
||||||
{
|
{
|
||||||
overrideTraitors = o;
|
overrideTraitors = o;
|
||||||
|
|||||||
Reference in New Issue
Block a user