Steamworks.InteropHelp.TestIfPlatformSupported C# (CSharp) Method

TestIfPlatformSupported() public static method

public static TestIfPlatformSupported ( ) : void
return void
		public static void TestIfPlatformSupported() {
#if !UNITY_EDITOR && !UNITY_STANDALONE && !STEAMWORKS_WIN && !STEAMWORKS_LIN_OSX
			throw new System.InvalidOperationException("Steamworks functions can only be called on platforms that Steam is available on.");
#endif
		}

Usage Example

Ejemplo n.º 1
0
 public static bool BUserIsVacBanned(byte[] rgubTicketDecrypted, uint cubTicketDecrypted)
 {
     InteropHelp.TestIfPlatformSupported();
     return(NativeMethods.SteamEncryptedAppTicket_BUserIsVacBanned(rgubTicketDecrypted, cubTicketDecrypted));
 }
All Usage Examples Of Steamworks.InteropHelp::TestIfPlatformSupported