From 0e63c4a2c6dec8dfa260501fb7d73750261ea7b7 Mon Sep 17 00:00:00 2001 From: chai <215380520@qq.com> Date: Sat, 25 Nov 2023 18:39:02 +0800 Subject: + init --- .../Steamworks/SteamParentalSettings.cs | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Assembly_Firstpass/Steamworks/SteamParentalSettings.cs (limited to 'Assembly_Firstpass/Steamworks/SteamParentalSettings.cs') 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); + } +} -- cgit v1.1-26-g67d0