added Game.RoundStarted

This commit is contained in:
Evil Factory
2021-09-03 12:47:54 -03:00
parent ce0da8581a
commit 2512513561
@@ -113,17 +113,26 @@ namespace Barotrauma
{ {
LuaSetup env; LuaSetup env;
public LuaGame(LuaSetup e)
{
env = e;
}
public bool allowWifiChat = false; public bool allowWifiChat = false;
public bool overrideTraitors = false; public bool overrideTraitors = false;
public bool overrideRespawnSub = false; public bool overrideRespawnSub = false;
public bool overrideSignalRadio = false; public bool overrideSignalRadio = false;
public bool disableSpamFilter = false; public bool disableSpamFilter = false;
public LuaGame(LuaSetup e) public bool RoundStarted
{ {
env = e; get
{
return GameMain.Server.GameStarted;
}
} }
public static void SendMessage(string msg, ChatMessageType? messageType = null, Client sender = null, Character character = null) public static void SendMessage(string msg, ChatMessageType? messageType = null, Client sender = null, Character character = null)
{ {
GameMain.Server.SendChatMessage(msg, messageType, sender, character); GameMain.Server.SendChatMessage(msg, messageType, sender, character);