exposed ServerPeer and ClientPeer to lua

This commit is contained in:
Evil Factory
2021-12-06 11:31:39 -03:00
parent 4ea4e4e0bd
commit 7ab00eb161
2 changed files with 23 additions and 0 deletions
@@ -161,6 +161,24 @@ namespace Barotrauma
}
}
#if SERVER
public ServerPeer Peer
{
get
{
return GameMain.Server.ServerPeer;
}
}
#else
public ClientPeer Peer
{
get
{
return GameMain.Client.ClientPeer;
}
}
#endif
public void OverrideTraitors(bool o)
{
overrideTraitors = o;