增加steam

This commit is contained in:
yaoyanwei
2025-08-11 15:00:21 +08:00
parent 8fda4168b3
commit 65ee6c6eeb
288 changed files with 34032 additions and 27 deletions

View File

@@ -0,0 +1,51 @@
// This file is provided under The MIT License as part of Steamworks.NET.
// Copyright (c) 2013-2022 Riley Labrecque
// Please see the included LICENSE.txt for additional information.
// This file is automatically generated.
// Changes to this file will be reverted when you update Steamworks.NET
#if !(UNITY_STANDALONE_WIN || UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || STEAMWORKS_WIN || STEAMWORKS_LIN_OSX)
#define DISABLESTEAMWORKS
#endif
#if !DISABLESTEAMWORKS
using System.Runtime.InteropServices;
using IntPtr = System.IntPtr;
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);
}
}
}
#endif // !DISABLESTEAMWORKS