summaryrefslogtreecommitdiff
path: root/Assembly_Firstpass/Steamworks/SteamParentalSettings.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assembly_Firstpass/Steamworks/SteamParentalSettings.cs')
-rw-r--r--Assembly_Firstpass/Steamworks/SteamParentalSettings.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/Assembly_Firstpass/Steamworks/SteamParentalSettings.cs b/Assembly_Firstpass/Steamworks/SteamParentalSettings.cs
new file mode 100644
index 0000000..e256211
--- /dev/null
+++ b/Assembly_Firstpass/Steamworks/SteamParentalSettings.cs
@@ -0,0 +1,40 @@
+namespace Steamworks;
+
+public static class SteamParentalSettings
+{
+ public static bool BIsParentalLockEnabled()
+ {
+ InteropHelp.TestIfAvailableClient();
+ return NativeMethods.ISteamParentalSettings_BIsParentalLockEnabled(CSteamAPIContext.GetSteamParentalSettings());
+ }
+
+ public static bool BIsParentalLockLocked()
+ {
+ InteropHelp.TestIfAvailableClient();
+ return NativeMethods.ISteamParentalSettings_BIsParentalLockLocked(CSteamAPIContext.GetSteamParentalSettings());
+ }
+
+ public static bool BIsAppBlocked(AppId_t nAppID)
+ {
+ InteropHelp.TestIfAvailableClient();
+ return NativeMethods.ISteamParentalSettings_BIsAppBlocked(CSteamAPIContext.GetSteamParentalSettings(), nAppID);
+ }
+
+ public static bool BIsAppInBlockList(AppId_t nAppID)
+ {
+ InteropHelp.TestIfAvailableClient();
+ return NativeMethods.ISteamParentalSettings_BIsAppInBlockList(CSteamAPIContext.GetSteamParentalSettings(), nAppID);
+ }
+
+ public static bool BIsFeatureBlocked(EParentalFeature eFeature)
+ {
+ InteropHelp.TestIfAvailableClient();
+ return NativeMethods.ISteamParentalSettings_BIsFeatureBlocked(CSteamAPIContext.GetSteamParentalSettings(), eFeature);
+ }
+
+ public static bool BIsFeatureInBlockList(EParentalFeature eFeature)
+ {
+ InteropHelp.TestIfAvailableClient();
+ return NativeMethods.ISteamParentalSettings_BIsFeatureInBlockList(CSteamAPIContext.GetSteamParentalSettings(), eFeature);
+ }
+}