public MySteamService(bool isDedicated, uint appId) { AppId = appId; if (isDedicated) { SteamServerAPI = SteamSDK.SteamServerAPI.Instance; } else { SteamAPI = SteamSDK.SteamAPI.Instance; IsActive = SteamAPI != null; if (SteamSDK.SteamAPI.RestartIfNecessary(AppId)) { #if !XB1 Environment.Exit(0); #else // XB1 System.Diagnostics.Debug.Assert(false, "XB1 TODO?"); #endif // XB1 } if (IsActive) { UserId = SteamAPI.GetSteamUserId(); UserName = SteamAPI.GetSteamName(); OwnsGame = SteamAPI.HasGame(); UserUniverse = SteamAPI.GetSteamUserUniverse(); BranchName = SteamAPI.GetBranchName(); SteamAPI.LoadStats(); } } }
public MySteamService(bool isDedicated, uint appId) { AppId = appId; if (isDedicated) { SteamServerAPI = SteamSDK.SteamServerAPI.Instance; } else { SteamAPI = SteamSDK.SteamAPI.Instance; IsActive = SteamAPI != null; if (SteamSDK.SteamAPI.RestartIfNecessary(AppId)) { Environment.Exit(0); } if (IsActive) { UserId = SteamAPI.GetSteamUserId(); UserName = SteamAPI.GetSteamName(); OwnsGame = SteamAPI.HasGame(); UserUniverse = SteamAPI.GetSteamUserUniverse(); BranchName = SteamAPI.GetBranchName(); SteamAPI.LoadStats(); } } }
public MySteamService(bool isDedicated, uint appId) { AppId = appId; if (isDedicated) { SteamServerAPI = SteamSDK.SteamServerAPI.Instance; } else { SteamAPI = SteamSDK.SteamAPI.Instance; IsActive = SteamAPI != null; if (SteamSDK.SteamAPI.RestartIfNecessary(AppId)) { Environment.Exit(0); } if (IsActive) { UserId = SteamAPI.GetSteamUserId(); UserName = SteamAPI.GetSteamName(); OwnsGame = SteamAPI.HasGame(); UserUniverse = SteamAPI.GetSteamUserUniverse(); BranchName = SteamAPI.GetBranchName(); SteamAPI.LoadStats(); } } }
public MySteamService(bool isDedicated, uint appId) { AppId = appId; if (isDedicated) { SteamServerAPI = SteamSDK.SteamServerAPI.Instance; } else { SteamAPI = SteamSDK.SteamAPI.Instance; IsActive = SteamAPI != null; if (SteamSDK.SteamAPI.RestartIfNecessary(AppId)) { #if !XB1 Environment.Exit(0); #else // XB1 System.Diagnostics.Debug.Assert(false, "XB1 TODO?"); #endif // XB1 } if (IsActive) { UserId = SteamAPI.GetSteamUserId(); UserName = SteamAPI.GetSteamName(); OwnsGame = SteamAPI.HasGame(); UserUniverse = SteamAPI.GetSteamUserUniverse(); BranchName = SteamAPI.GetBranchName(); SteamAPI.LoadStats(); } } }