Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaServer/Source/Networking/GameServer.cs
T
2019-03-18 20:39:27 +02:00

28 lines
509 B
C#

using Lidgren.Network;
namespace Barotrauma.Networking
{
partial class GameServer : NetworkMember
{
void InitProjSpecific()
{
//do nothing
}
void InitUPnP()
{
server.UPnP.ForwardPort(NetPeerConfiguration.Port, "barotrauma");
}
bool DiscoveringUPnP()
{
return server.UPnP.Status == UPnPStatus.Discovering;
}
void FinishUPnP()
{
//do nothing
}
}
}