mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-04-26 23:09:37 +03:00
Can disable automatic RunCallback calling by setting asyncCallbacks to false in Init
This commit is contained in:
parent
71b977ef7e
commit
a7666d7d51
@ -11,7 +11,11 @@ namespace Steamworks
|
|||||||
{
|
{
|
||||||
static bool initialized;
|
static bool initialized;
|
||||||
|
|
||||||
public static void Init( uint appid )
|
/// <summary>
|
||||||
|
/// Initialize the steam client.
|
||||||
|
/// If asyncCallbacks is false you need to call RunCallbacks manually every frame.
|
||||||
|
/// </summary>
|
||||||
|
public static void Init( uint appid, bool asyncCallbacks = true )
|
||||||
{
|
{
|
||||||
System.Environment.SetEnvironmentVariable( "SteamAppId", appid.ToString() );
|
System.Environment.SetEnvironmentVariable( "SteamAppId", appid.ToString() );
|
||||||
System.Environment.SetEnvironmentVariable( "SteamGameId", appid.ToString() );
|
System.Environment.SetEnvironmentVariable( "SteamGameId", appid.ToString() );
|
||||||
|
@ -66,7 +66,12 @@ namespace Steamworks
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static event Action<Result> OnSteamServersDisconnected;
|
public static event Action<Result> OnSteamServersDisconnected;
|
||||||
|
|
||||||
public static void Init( AppId appid, SteamServerInit init )
|
|
||||||
|
/// <summary>
|
||||||
|
/// Initialize the steam server.
|
||||||
|
/// If asyncCallbacks is false you need to call RunCallbacks manually every frame.
|
||||||
|
/// </summary>
|
||||||
|
public static void Init( AppId appid, SteamServerInit init, bool asyncCallbacks = true )
|
||||||
{
|
{
|
||||||
uint ipaddress = 0; // Any Port
|
uint ipaddress = 0; // Any Port
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user