Steamworks.InteropHelp.TestIfAvailableClient C# (CSharp) Method

TestIfAvailableClient() public static method

public static TestIfAvailableClient ( ) : void
return void
		public static void TestIfAvailableClient() {
			TestIfPlatformSupported();
			if (NativeMethods.SteamClient() == System.IntPtr.Zero) {
				throw new System.InvalidOperationException("Steamworks is not initialized.");
			}
		}

Usage Example

 public static SteamAPICall_t RemoveItemFromFavorites(AppId_t nAppId, PublishedFileId_t nPublishedFileID)
 {
     InteropHelp.TestIfAvailableClient();
     return((SteamAPICall_t)NativeMethods.ISteamUGC_RemoveItemFromFavorites(nAppId, nPublishedFileID));
 }
All Usage Examples Of Steamworks.InteropHelp::TestIfAvailableClient