Steamworks Library
Steamworks Library
Helpers for integrating with the Steamworks API
OmegaLeo.HelperLib.Steamworks
AchievementManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
AchievementManager |
Provides helper methods for unlocking and querying Steam achievements. Example: var achievements = new AchievementManager(logger); achievements.UnlockAchievement("ACH_WIN_ONE_GAME"); |
UnlockAchievement |
Attempts to unlock the provided achievement and store user stats. Returns: voidParameters:
|
IsAchievementUnlocked |
Checks whether a Steam achievement is currently unlocked. Returns: boolParameters:
|
SteamControllerManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamControllerManager |
Provides access checks for ISteamController. |
SteamFriendsManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamFriendsManager |
Provides access checks for ISteamFriends. |
GetFriendCount |
Gets the friend count filtered by Steam friend flags. Returns: intParameters:
|
GetFriendPersonaName |
Gets the persona name of a friend by SteamID64. Returns: stringParameters:
|
ActivateGameOverlayInviteDialog |
Opens the Steam invite dialog for a lobby. Returns: voidParameters:
|
SetRichPresence |
Sets a rich presence key/value pair for the local user. Returns: boolParameters:
|
ClearRichPresence |
Clears all rich presence values for the local user. Returns: void |
GetFriendRichPresence |
Gets a rich presence value for a specific friend. Returns: stringParameters:
|
InviteUserToGame |
Invites a friend to the current game session using a connect string. Returns: boolParameters:
|
SteamGameCoordinatorManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamGameCoordinatorManager |
Provides access checks for ISteamGameCoordinator. |
SteamGameServerManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamGameServerManager |
Provides access checks for ISteamGameServer. |
SteamGameServerStatsManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamGameServerStatsManager |
Provides access checks for ISteamGameServerStats. |
SteamHtmlSurfaceManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamHtmlSurfaceManager |
Provides access checks for ISteamHTMLSurface. |
SteamInputManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamInputManager |
Provides access checks for ISteamInput. |
Init |
Initializes Steam Input for the application. Returns: boolParameters:
|
Shutdown |
Shuts down Steam Input. Returns: bool |
RunFrame |
Runs a Steam Input frame update. Returns: void |
SteamInventoryManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamInventoryManager |
Provides access checks for ISteamInventory. |
LoadItemDefinitions |
Requests latest inventory item definitions from Steam. Returns: bool |
GetAllItems |
Requests all inventory items and returns a result handle. Returns: boolParameters:
|
DestroyResult |
Releases an inventory result handle returned from Steam Inventory API calls. Returns: voidParameters:
|
SteamManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamManager |
Manages Steamworks initialization, callback polling, and shutdown for applications using the Steam API. Example: SteamManager.ConfigureLogger(logger); SteamManager.ConfigureAppId(480); var steam = SteamManager.Instance; steam.Update(); |
Instance |
Singleton access to the Steam manager. |
IsSteamworksInitialized |
Indicates whether Steamworks is initialized and ready for API calls. |
Ugc |
Provides access to Steam Workshop (UGC) helper operations. |
RemotePlay |
Provides access to Steam Remote Play helper operations. |
Controller |
Provides access to ISteamController bindings. |
Friends |
Provides access to ISteamFriends bindings. |
GameCoordinator |
Provides access to ISteamGameCoordinator bindings. |
GameServer |
Provides access to ISteamGameServer bindings. |
GameServerStats |
Provides access to ISteamGameServerStats bindings. |
HtmlSurface |
Provides access to ISteamHTMLSurface bindings. |
Input |
Provides access to ISteamInput bindings. |
Inventory |
Provides access to ISteamInventory bindings. |
Matchmaking |
Provides access to ISteamMatchmaking bindings. |
MatchmakingServers |
Provides access to ISteamMatchmakingServers bindings. |
Music |
Provides access to ISteamMusic bindings. |
Parties |
Provides access to ISteamParties bindings. |
RemoteStorage |
Provides access to ISteamRemoteStorage bindings. |
Screenshots |
Provides access to ISteamScreenshots bindings. |
UserStats |
Provides access to ISteamUserStats bindings. |
Utils |
Provides access to ISteamUtils bindings. |
Video |
Provides access to ISteamVideo bindings. |
ConfigureLogger |
Configures the logger used by Steamworks helper classes. Returns: voidParameters:
|
ConfigureAppId |
Configures the Steam AppId used during initialization. Must be called before accessing the singleton instance. Returns: boolParameters:
|
Update |
Executes Steamworks callbacks. Call every frame from your game loop. Returns: void |
Shutdown |
Shuts down Steamworks and clears the initialized state. Returns: void |
GetSteamName |
Gets the current Steam persona name. Returns "Player" when Steamworks is unavailable. Returns: string |
SteamMatchmakingManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamMatchmakingManager |
Provides access checks for ISteamMatchmaking. |
RequestLobbyList |
Requests a lobby list and returns a Steam API call handle. Returns: ulong |
AddRequestLobbyListResultCountFilter |
Sets the maximum number of lobbies returned by RequestLobbyList. Returns: voidParameters:
|
CreateLobby |
Creates a lobby and returns a Steam API call handle. Returns: ulongParameters:
|
JoinLobby |
Joins a lobby by SteamID64 and returns a Steam API call handle. Returns: ulongParameters:
|
LeaveLobby |
Leaves a lobby by SteamID64. Returns: voidParameters:
|
GetNumLobbyMembers |
Gets the number of members currently in a lobby. Returns: intParameters:
|
SteamMatchmakingServersManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamMatchmakingServersManager |
Provides access checks for ISteamMatchmakingServers. |
SteamMusicManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamMusicManager |
Provides access checks for ISteamMusic. |
IsEnabled |
Checks whether Steam Music is enabled. Returns: bool |
IsPlaying |
Checks whether Steam Music is currently playing. Returns: bool |
Play |
Starts Steam Music playback. Returns: void |
Pause |
Pauses Steam Music playback. Returns: void |
PlayNext |
Advances to the next music track. Returns: void |
PlayPrevious |
Moves to the previous music track. Returns: void |
GetVolume |
Gets Steam Music volume (0..1 range). Returns: float |
SetVolume |
Sets Steam Music volume (0..1 range). Returns: voidParameters:
|
SteamPartiesManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamPartiesManager |
Provides access checks for ISteamParties. |
SteamRemotePlayManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamRemotePlayManager |
Provides helper methods for Steam Remote Play session inspection. Example: var remotePlay = SteamManager.Instance.RemotePlay; var sessionCount = remotePlay.GetSessionCount(); |
GetSessionCount |
Gets the number of active Remote Play sessions for the current user. Returns: uint |
GetSessionId |
Gets a Remote Play session ID by zero-based session index. Returns: uintParameters:
|
GetSessionSteamId |
Gets the SteamID for the remote user in a session. Returns: ulongParameters:
|
GetSessionClientName |
Gets the client device name for a remote session. Returns: stringParameters:
|
GetSessionClientFormFactor |
Gets the client form-factor value for a session (matches Steam's ESteamDeviceFormFactor numeric values). Returns: intParameters:
|
TryGetSessionClientResolution |
Gets the streaming client resolution for a session. Returns: boolParameters:
|
SteamRemoteStorageManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamRemoteStorageManager |
Provides access checks for ISteamRemoteStorage. |
FileExists |
Checks whether a file exists in Steam Remote Storage. Returns: boolParameters:
|
GetFileCount |
Gets the number of files in Steam Remote Storage for the current app/user context. Returns: int |
IsCloudEnabledForApp |
Checks whether Steam Cloud is enabled for this app. Returns: bool |
FileWrite |
Writes a byte array to a Steam Cloud file. Returns: boolParameters:
|
FileRead |
Reads a Steam Cloud file into a byte array. Returns: boolParameters:
|
FileDelete |
Deletes a Steam Cloud file. Returns: boolParameters:
|
GetFileSize |
Gets file size in bytes for a Steam Cloud file. Returns: intParameters:
|
SteamScreenshotsManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamScreenshotsManager |
Provides access checks for ISteamScreenshots. |
AddScreenshotToLibrary |
Adds an existing screenshot to the Steam screenshot library. Returns: uintParameters:
|
TriggerScreenshot |
Triggers an in-game screenshot event. Returns: void |
HookScreenshots |
Enables or disables screenshot hooks for custom handling. Returns: voidParameters:
|
IsScreenshotsHooked |
Checks whether screenshot hooks are currently enabled. Returns: bool |
SteamUgcItemUpdateOptions
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamUgcItemUpdateOptions |
Declarative update payload for workshop item editing convenience APIs. |
Title |
Workshop item title. |
Description |
Workshop item description. |
Metadata |
Workshop item metadata string. |
Visibility |
Numeric ERemoteStoragePublishedFileVisibility value. |
Tags |
Workshop tag list. |
ContentFolder |
Absolute path to workshop content folder. |
PreviewFile |
Absolute path to workshop preview image. |
SteamUgcItemUpdateSession
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamUgcItemUpdateSession |
Fluent helper for editing and submitting a workshop item update. |
Submit |
Submits the fluent update session and returns a Steam API call handle. Returns: ulongParameters:
|
SteamUgcManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamUgcManager |
Provides helper methods for common Steam Workshop (UGC) operations such as queries and subscriptions. Example: var ugc = new SteamUgcManager(); var items = ugc.GetSubscribedItems(); |
BeginUpdateSession |
Begins a fluent UGC update session for an existing workshop item. Returns: SteamUgcItemUpdateSessionParameters:
|
ApplyItemUpdate |
Applies all non-null/non-empty fields from a UGC update options object to an existing update handle. Returns: boolParameters:
|
UpdateItem |
Convenience method that starts an item update, applies option fields, and submits the update in one call. Returns: ulongParameters:
|
CreateItem |
Creates a new Workshop item and returns a Steam API call handle. Returns: ulongParameters:
|
StartItemUpdate |
Starts an update transaction for an existing Workshop item. Returns: ulongParameters:
|
SetItemTitle |
Sets workshop item title for a pending update. Returns: boolParameters:
|
SetItemDescription |
Sets workshop item description for a pending update. Returns: boolParameters:
|
SetItemMetadata |
Sets workshop item metadata for a pending update. Returns: boolParameters:
|
SetItemVisibility |
Sets workshop item visibility for a pending update. Returns: boolParameters:
|
SetItemTags |
Sets workshop item tags for a pending update. Returns: boolParameters:
|
SetItemContent |
Sets workshop item content folder path for a pending update. Returns: boolParameters:
|
SetItemPreview |
Sets workshop item preview image path for a pending update. Returns: boolParameters:
|
SubmitItemUpdate |
Submits a pending workshop item update and returns a Steam API call handle. Returns: ulongParameters:
|
GetItemUpdateProgress |
Gets progress state for a pending item update upload. Returns: uintParameters:
|
CreateQueryAllUgcRequest |
Creates a UGC query request handle for workshop discovery. Returns: ulongParameters:
|
SendQueryUgcRequest |
Submits an existing UGC query request and returns a Steam API call handle. Returns: ulongParameters:
|
ReleaseQueryUgcRequest |
Releases a UGC query handle after you are done with query results. Returns: boolParameters:
|
GetNumSubscribedItems |
Gets the number of workshop items the current user is subscribed to. Returns: uint |
GetSubscribedItems |
Gets subscribed workshop item IDs for the current user. Returns: ulong[]Parameters:
|
SubscribeItem |
Subscribes the current user to a workshop item. Returns: ulongParameters:
|
UnsubscribeItem |
Unsubscribes the current user from a workshop item. Returns: ulongParameters:
|
SteamUserStatsManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamUserStatsManager |
Provides access checks for ISteamUserStats. |
RequestUserStats |
Requests user stats for a target SteamID64 and returns a Steam API call handle. Returns: ulongParameters:
|
RequestGlobalStats |
Requests global stats history and returns a Steam API call handle. Returns: ulongParameters:
|
ResetAllStats |
Resets local user stats, optionally including achievements. Returns: boolParameters:
|
GetStatInt32 |
Gets a named integer stat value. Returns: boolParameters:
|
SetStatInt32 |
Sets a named integer stat value. Returns: boolParameters:
|
StoreStats |
Stores pending stats and achievement changes to Steam. Returns: bool |
SteamUtilsManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamUtilsManager |
Provides access checks for ISteamUtils. |
GetAppId |
Gets the current Steam AppId reported by SteamUtils. Returns: uint |
GetIpCountry |
Gets the two-letter country code inferred by Steam based on the current IP. Returns: string |
IsOverlayEnabled |
Checks whether Steam Overlay is currently enabled. Returns: bool |
SteamVideoManager
OmegaLeo.HelperLib.Steamworks| Member | Documentation |
|---|---|
SteamVideoManager |
Provides access checks for ISteamVideo. |
GetVideoUrl |
Requests a video URL for a given Steam video app id. Returns: voidParameters:
|
IsBroadcasting |
Checks whether the user is broadcasting and returns current viewer count. Returns: boolParameters:
|