isteamparentalsettings.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. // This file is automatically generated.
  5. // Changes to this file will be reverted when you update Steamworks.NET
  6. #if UNITY_ANDROID || UNITY_IOS || UNITY_TIZEN || UNITY_TVOS || UNITY_WEBGL || UNITY_WSA || UNITY_PS4 || UNITY_WII || UNITY_XBOXONE || UNITY_SWITCH
  7. #define DISABLESTEAMWORKS
  8. #endif
  9. #if !DISABLESTEAMWORKS
  10. using System.Runtime.InteropServices;
  11. using IntPtr = System.IntPtr;
  12. namespace Steamworks {
  13. public static class SteamParentalSettings {
  14. public static bool BIsParentalLockEnabled() {
  15. InteropHelp.TestIfAvailableClient();
  16. return NativeMethods.ISteamParentalSettings_BIsParentalLockEnabled(CSteamAPIContext.GetSteamParentalSettings());
  17. }
  18. public static bool BIsParentalLockLocked() {
  19. InteropHelp.TestIfAvailableClient();
  20. return NativeMethods.ISteamParentalSettings_BIsParentalLockLocked(CSteamAPIContext.GetSteamParentalSettings());
  21. }
  22. public static bool BIsAppBlocked(AppId_t nAppID) {
  23. InteropHelp.TestIfAvailableClient();
  24. return NativeMethods.ISteamParentalSettings_BIsAppBlocked(CSteamAPIContext.GetSteamParentalSettings(), nAppID);
  25. }
  26. public static bool BIsAppInBlockList(AppId_t nAppID) {
  27. InteropHelp.TestIfAvailableClient();
  28. return NativeMethods.ISteamParentalSettings_BIsAppInBlockList(CSteamAPIContext.GetSteamParentalSettings(), nAppID);
  29. }
  30. public static bool BIsFeatureBlocked(EParentalFeature eFeature) {
  31. InteropHelp.TestIfAvailableClient();
  32. return NativeMethods.ISteamParentalSettings_BIsFeatureBlocked(CSteamAPIContext.GetSteamParentalSettings(), eFeature);
  33. }
  34. public static bool BIsFeatureInBlockList(EParentalFeature eFeature) {
  35. InteropHelp.TestIfAvailableClient();
  36. return NativeMethods.ISteamParentalSettings_BIsFeatureInBlockList(CSteamAPIContext.GetSteamParentalSettings(), eFeature);
  37. }
  38. }
  39. }
  40. #endif // !DISABLESTEAMWORKS