v0.10.5.1

This commit is contained in:
Juan Pablo Arce
2020-09-22 11:31:56 -03:00
parent 44032d0ae0
commit 0002ad2c50
343 changed files with 12276 additions and 5023 deletions
@@ -77,14 +77,13 @@ namespace Steamworks
System.Environment.SetEnvironmentVariable( "SteamAppId", appid.ToString() );
System.Environment.SetEnvironmentVariable( "SteamGameId", appid.ToString() );
var secure = (int)(init.Secure ? 3 : 2);
//
// Get other interfaces
//
if ( !SteamInternal.GameServer_Init( ipaddress, init.SteamPort, init.GamePort, init.QueryPort, secure, init.VersionString ) )
if ( !SteamInternal.GameServer_Init( ipaddress, init.SteamPort, init.GamePort, init.QueryPort, (int)init.Mode, init.VersionString ) )
{
throw new System.Exception( $"InitGameServer returned false ({ipaddress},{init.SteamPort},{init.GamePort},{init.QueryPort},{secure},\"{init.VersionString}\")" );
throw new System.Exception( $"InitGameServer returned false ({ipaddress},{init.SteamPort},{init.GamePort},{init.QueryPort},{init.Mode},\"{init.VersionString}\")" );
}
//
@@ -7,6 +7,14 @@ using System.Text;
namespace Steamworks
{
public enum InitServerMode
{
Invalid = 0,
NoAuthentication = 1,
Authentication = 2,
AuthenticationSecure = 3
};
/// <summary>
/// Used to set up the server.
/// The variables in here are all required to be set, and can't be changed once the server is created.
@@ -17,7 +25,7 @@ namespace Steamworks
public ushort SteamPort;
public ushort GamePort;
public ushort QueryPort;
public bool Secure;
public InitServerMode Mode;
/// <summary>
/// The version string is usually in the form x.x.x.x, and is used by the master server to detect when the server is out of date.
@@ -49,7 +57,7 @@ namespace Steamworks
GameDescription = gameDesc;
GamePort = 27015;
QueryPort = 27016;
Secure = true;
Mode = InitServerMode.Authentication;
VersionString = "1.0.0.0";
IpAddress = null;
SteamPort = 0;
@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Runtime.InteropServices;
using System.Text;
using System.Runtime.InteropServices;
namespace Steamworks
{