reverted changes

This commit is contained in:
MadDave666 2023-05-22 13:33:07 +02:00
parent b84a5a88f9
commit b9509e9782

View File

@ -1,7 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Net;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Text; using System.Text;
@ -53,31 +52,6 @@ public SteamServerInit( string modDir, string gameDesc )
IpAddress = null; IpAddress = null;
} }
public ServerInit(IPAddress ip, string modDir, string gameDesc)
{
IpAddress = ip.IpToInt32();
ModDir = modDir;
GameDescription = gameDesc;
}
/// <summary>
/// set the server ip
/// </summary>
public ServerInit Ip(string ip)
{
IpAddress = IPAddress.Parse(ip).IpToInt32();
return this;
}
/// <summary>
/// set the server ip
/// </summary>
public ServerInit Ip(IPAddress ip)
{
IpAddress = ip.IpToInt32();
return this;
}
/// <summary> /// <summary>
/// If you pass MASTERSERVERUPDATERPORT_USEGAMESOCKETSHARE into usQueryPort, then it causes the game server API to use /// If you pass MASTERSERVERUPDATERPORT_USEGAMESOCKETSHARE into usQueryPort, then it causes the game server API to use
/// "GameSocketShare" mode, which means that the game is responsible for sending and receiving UDP packets for the master /// "GameSocketShare" mode, which means that the game is responsible for sending and receiving UDP packets for the master