updated SteamWorks library

This commit is contained in:
2026-10-24 11:38:40 +01:00
parent 91cdba0fef
commit c745fb18bd
8 changed files with 1485 additions and 33 deletions
@@ -356,6 +356,59 @@ namespace OmegaLeo.HelperLib.Steamworks
}
}
[Documentation(nameof(SteamAppsManager), "Provides ownership, DLC and language queries from ISteamApps.", null,
@"```csharp
var apps = SteamManager.Instance.Apps;
if (apps.BIsSubscribedApp(5498630)) { /* user owns the demo */ }
var language = apps.GetCurrentGameLanguage(); // e.g. ""english""
```")]
public class SteamAppsManager
{
public bool IsAvailable => SteamNativeApi.IsSteamAppsAvailable();
[Documentation(nameof(BIsSubscribed), "Checks whether the current user owns (is subscribed to) the running app.", null, null)]
public bool BIsSubscribed()
{
return SteamNativeApi.AppsIsSubscribed();
}
[Documentation(nameof(BIsSubscribedApp), "Checks whether the current user owns the given app, for example a related demo or another of your games.",new[] { "appId: AppId to check." }, null)]
public bool BIsSubscribedApp(uint appId)
{
return SteamNativeApi.AppsIsSubscribedApp(appId);
}
[Documentation(nameof(BIsDlcInstalled), "Checks whether the user owns the given DLC and it is installed.", new[] { "appId: DLC AppId." }, null)]
public bool BIsDlcInstalled(uint appId)
{
return SteamNativeApi.AppsIsDlcInstalled(appId);
}
[Documentation(nameof(BIsAppInstalled), "Checks whether the given app is installed on this machine.", new[] { "appId: AppId to check." }, null)]
public bool BIsAppInstalled(uint appId)
{
return SteamNativeApi.AppsIsAppInstalled(appId);
}
[Documentation(nameof(GetCurrentGameLanguage), "Gets the language the user selected for this game in Steam (API language code such as \"english\"), or an empty string when unavailable.", null, null)]
public string GetCurrentGameLanguage()
{
return SteamNativeApi.AppsGetCurrentGameLanguage();
}
[Documentation(nameof(GetAvailableGameLanguages), "Gets a comma-separated list of the languages the game supports.", null, null)]
public string GetAvailableGameLanguages()
{
return SteamNativeApi.AppsGetAvailableGameLanguages();
}
[Documentation(nameof(GetAppBuildId), "Gets the Steam build id of the installed depot.", null, null)]
public int GetAppBuildId()
{
return SteamNativeApi.AppsGetAppBuildId();
}
}
[Documentation(nameof(SteamUtilsManager), "Provides access checks for ISteamUtils.", null, null)]
public class SteamUtilsManager
{