summaryrefslogtreecommitdiff
path: root/Assembly_Firstpass/Steamworks/SteamParentalSettings.cs
blob: e256211214c0e65323604ce98e32694271896c84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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);
	}
}