diff --git a/Facepunch.Steamworks/SteamServer.cs b/Facepunch.Steamworks/SteamServer.cs index cc35927..b892760 100644 --- a/Facepunch.Steamworks/SteamServer.cs +++ b/Facepunch.Steamworks/SteamServer.cs @@ -28,6 +28,7 @@ namespace Steamworks Dispatch.Install( x => OnSteamServersConnected?.Invoke(), true ); Dispatch.Install( x => OnSteamServerConnectFailure?.Invoke( x.Result, x.StillRetrying ), true ); Dispatch.Install( x => OnSteamServersDisconnected?.Invoke( x.Result ), true ); + Dispatch.Install(x => OnSteamNetAuthenticationStatus?.Invoke(x.Avail), true); } /// @@ -51,6 +52,11 @@ namespace Steamworks /// public static event Action OnSteamServersDisconnected; + /// + /// Called when authentication status changes, useful for grabbing SteamId once aavailability is current + /// + public static event Action OnSteamNetAuthenticationStatus; + /// /// Initialize the steam server. @@ -269,6 +275,8 @@ namespace Steamworks } private static string _gametags = ""; + public static SteamId SteamId => Internal.GetSteamID(); + /// /// Log onto Steam anonymously. ///