summaryrefslogtreecommitdiff
path: root/Assembly_Firstpass/Steamworks/SteamParentalSettings.cs
diff options
context:
space:
mode:
authorchai <215380520@qq.com>2023-11-25 18:39:02 +0800
committerchai <215380520@qq.com>2023-11-25 18:39:02 +0800
commit0e63c4a2c6dec8dfa260501fb7d73750261ea7b7 (patch)
treef6f2291be65d195d6082b523a56183c332715240 /Assembly_Firstpass/Steamworks/SteamParentalSettings.cs
+ init
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);
+ }
+}