Introduce ServerType.Skirmish.

This commit is contained in:
Paul Chote
2023-11-12 18:05:28 +00:00
committed by Gustas
parent 3b67e425ed
commit 3f4f9e7354
5 changed files with 26 additions and 18 deletions

View File

@@ -936,7 +936,7 @@ namespace OpenRA
return server.GetEndpointForLocalConnection();
}
public static ConnectionTarget CreateLocalServer(string map)
public static ConnectionTarget CreateLocalServer(string map, bool isSkirmish = false)
{
var settings = new ServerSettings()
{
@@ -952,7 +952,7 @@ namespace OpenRA
{
new(IPAddress.Loopback, 0)
};
server = new Server.Server(endpoints, settings, ModData, ServerType.Local);
server = new Server.Server(endpoints, settings, ModData, isSkirmish ? ServerType.Skirmish : ServerType.Local);
return server.GetEndpointForLocalConnection();
}