CnC_Remastered_Collection

Command and Conquer: Red Alert
Log | Files | Refs | README | LICENSE

isteamparentalsettings.cs (2002B)


      1 // This file is provided under The MIT License as part of Steamworks.NET.
      2 // Copyright (c) 2013-2019 Riley Labrecque
      3 // Please see the included LICENSE.txt for additional information.
      4 
      5 // This file is automatically generated.
      6 // Changes to this file will be reverted when you update Steamworks.NET
      7 
      8 #if UNITY_ANDROID || UNITY_IOS || UNITY_TIZEN || UNITY_TVOS || UNITY_WEBGL || UNITY_WSA || UNITY_PS4 || UNITY_WII || UNITY_XBOXONE || UNITY_SWITCH
      9 	#define DISABLESTEAMWORKS
     10 #endif
     11 
     12 #if !DISABLESTEAMWORKS
     13 
     14 using System.Runtime.InteropServices;
     15 using IntPtr = System.IntPtr;
     16 
     17 namespace Steamworks {
     18 	public static class SteamParentalSettings {
     19 		public static bool BIsParentalLockEnabled() {
     20 			InteropHelp.TestIfAvailableClient();
     21 			return NativeMethods.ISteamParentalSettings_BIsParentalLockEnabled(CSteamAPIContext.GetSteamParentalSettings());
     22 		}
     23 
     24 		public static bool BIsParentalLockLocked() {
     25 			InteropHelp.TestIfAvailableClient();
     26 			return NativeMethods.ISteamParentalSettings_BIsParentalLockLocked(CSteamAPIContext.GetSteamParentalSettings());
     27 		}
     28 
     29 		public static bool BIsAppBlocked(AppId_t nAppID) {
     30 			InteropHelp.TestIfAvailableClient();
     31 			return NativeMethods.ISteamParentalSettings_BIsAppBlocked(CSteamAPIContext.GetSteamParentalSettings(), nAppID);
     32 		}
     33 
     34 		public static bool BIsAppInBlockList(AppId_t nAppID) {
     35 			InteropHelp.TestIfAvailableClient();
     36 			return NativeMethods.ISteamParentalSettings_BIsAppInBlockList(CSteamAPIContext.GetSteamParentalSettings(), nAppID);
     37 		}
     38 
     39 		public static bool BIsFeatureBlocked(EParentalFeature eFeature) {
     40 			InteropHelp.TestIfAvailableClient();
     41 			return NativeMethods.ISteamParentalSettings_BIsFeatureBlocked(CSteamAPIContext.GetSteamParentalSettings(), eFeature);
     42 		}
     43 
     44 		public static bool BIsFeatureInBlockList(EParentalFeature eFeature) {
     45 			InteropHelp.TestIfAvailableClient();
     46 			return NativeMethods.ISteamParentalSettings_BIsFeatureInBlockList(CSteamAPIContext.GetSteamParentalSettings(), eFeature);
     47 		}
     48 	}
     49 }
     50 
     51 #endif // !DISABLESTEAMWORKS