This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Basics
Rendering
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Unigine.Plugins.Steam Class

Steam Class

Enums

CALLBACK_INDEX#

NameDescription
OVERLAY_SHOWN = 0
LEADERBOARD_FOUND = 1
LEADERBOARD_SCORES_UPLOADED = 2
LEADERBOARD_SCORES_DOWNLOADED = 3

PERSONA_STATE#

NameDescription
OFFLINE = 0Friend is not currently logged on.
ONLINE = 1Friend is logged on.
BUSY = 2User is on, but busy.
AWAY = 3Auto-away feature.
SNOOZE = 4Auto-away for a long time.
LOOKING_TO_TRADE = 5Online, trading.
LOOKING_TO_PLAY = 6Online, wanting to play.

FRIEND_FLAG#

NameDescription
NONE = 0None.
BLOCKED = 1Users that the current user has blocked from contacting.
FRIENDSHIP_REQUESTED = 2Users that have sent a friend invite to the current user.
IMMEDIATE = 4The current user's "regular" friends.
CLAN_MEMBER = 8Users that are in one of the same (small) Steam groups as the current user.
ON_GAME_SERVER = 16Users that are on the same game server.
REQUESTING_FRIENDSHIP = 128Users that the current user has sent friend invites to.
REQUESTING_INFO = 256Users that are currently sending additional info about themselves.
IGNORED = 512Users that the current user has ignored from contacting them.
IGNORED_FRIEND = 1024Users that have ignored the current user; but the current user still knows about them.
ALL = 65535All friend flags.

FRIEND_RELATIONSHIP#

NameDescription
NONE = 0The users have no relationship.
BLOCKED = 1The user has just clicked Ignore on an friendship invite. This doesn't get stored.
REQUEST_RECIPIENT = 2The user has requested to be friends with the current user.
FRIEND = 3A "regular" friend.
REQUEST_INITIATOR = 4The current user has sent a friend invite.
IGNORED = 5The current user has explicit blocked this other user from comments/chat/etc. This is stored.
IGNORED_FRIEND = 6The user has ignored the current user.

OVERLAY_TO_STORE#

NameDescription
FLAG_NONE = 0No.
ADD_TO_CART = 1Add the specified app ID to the user's cart.
ADD_TO_CART_AND_SHOW = 2Add the specified app ID to the user's cart and show the store page.

OVERLAY_POSITION#

NameDescription
TOP_LEFT = 0Top left corner position of the overlay notification popup.
TOP_RIGHT = 1Top right corner position of the overlay notification popup.
BOTTOM_LEFT = 2Bottom left corner position of the overlay notification popup.
BOTTOM_RIGHT = 3Bottom right corner position of the overlay notification popup.

OVERLAY_TO_WEB_PAGE_MODE#

Overlay mode to be used.
NameDescription
DEFAULT = 0
MODAL = 1

Properties

Steam.PERSONA_STATE MyState#

The friend status of the current user.

string MyName#

The Gets the current user's persona (display) name. This is the same name that is displayed on the user's community profile page.

ulong MyUserID#

The Gets the current user's ID.

bool IsOverlayShown#

The Checks if the Steam Overlay is running and the user can access it.

string UserDataFolder#

The name of the user data folder.

string AvailableGameLanguages#

The A comma-separated list of languages.

string CurrentGameLanguage#

The current language that the user has set.

bool IsVACBanned#

The Checks if the user has a VAC ban on their account.

bool IsCybercafe#

The value specifying if the current app is for cyber cafes.

bool IsLowViolence#

The Checks if the license owned by the user provides low violence depots.

bool IsSubscribed#

The Checks if the user is allowed to run the current app.

int AppID#

The Steam appid.

Members


void ShowOverlay ( string dialog ) #

Opens the Steam overlay to the specified dialog.

Arguments

  • string dialog - The dialog to open. Valid options are: "friends", "community", "players", "settings", "officialgamegroup", "stats", "achievements".

void ShowOverlayToWebPage ( string url, Steam.OVERLAY_TO_WEB_PAGE_MODE mode ) #

Activates Steam Overlay web browser directly to the specified URL.

Arguments

void ShowOverlayToUser ( string dialog, ulong steam_id ) #

Opens the Steam overlay to the specified dialog.

Arguments

  • string dialog - The dialog to open. Valid options are: "steamid", "chat", "jointrade", "stats", "achievements", "friendadd", "friendremove", "friendrequestaccept", "friendrequestignore".
  • ulong steam_id - The Steam ID of the context to open this dialog to.

void ShowOverlayToStore ( int app_id, Steam.OVERLAY_TO_STORE store_flag ) #

Activates the Steam Overlay to the Steam store page for the provided app.

Arguments

void ShowOverlayInviteDialog ( ulong steam_id_lobby ) #

Activates the Steam Overlay to open the invite dialog. Invitations sent from this dialog will be for the provided lobby.

Arguments

  • ulong steam_id_lobby - The Steam ID of the lobby that selected users will be invited to.

void SetOverlayNotificationPosition ( Steam.OVERLAY_POSITION position ) #

Sets which corner the Steam overlay notification popup should display itself in.

Arguments

string GetUserName ( ulong steam_id_friend ) #

Returns the specified user's persona (display) name.

Arguments

  • ulong steam_id_friend - The Steam ID of the user.

Return value

The current users persona name in UTF-8 format. Guaranteed to not be NULL. Returns an empty string (""), or "[unknown]" if the Steam ID is invalid or not known to the caller.

int GetNumFriends ( int friend_flags ) #

Returns the number of users the client knows about who meet a specified criteria (friends, blocked, users on the same server, etc.).

Arguments

  • int friend_flags - A combined union (binary "or") of one or more FRIEND_FLAG.* values.

Return value

The number of users that meet the specified criteria. Returns -1 if the current user is not logged on.

ulong GetFriendByIndex ( int ifriend, int ifriend_flags ) #

Arguments

  • int ifriend - An index between 0 and GetFriendCountFromSource.
  • int ifriend_flags - .

Return value

.

Steam.FRIEND_RELATIONSHIP GetUserRelationship ( ulong steam_id_friend ) #

Returns a relationship to a specified user.

Arguments

  • ulong steam_id_friend - The Steam ID of the other user.

Return value

Relationship to a specified user, one of the FRIEND_RELATIONSHIP.* values.

Steam.PERSONA_STATE GetUserPersonaState ( ulong steam_id_friend ) #

Returns the status of the friend.

Arguments

  • ulong steam_id_friend - Steam ID of the user.

Return value

Status of the friend, one of the PERSONA_STATE.* values.

Variable GetUserAvatarSmall ( ulong id ) #

Returns a handle to the small avatar for the specified user.

Arguments

  • ulong id - Steam ID of the user.

Return value

A Steam handle to the small (32*32 px) image. Returns 0 if no avatar is set for the user.

Variable GetUserAvatarMedium ( ulong id ) #

Returns a handle to the medium avatar for the specified user.

Arguments

  • ulong id - Steam ID of the user.

Return value

A Steam handle to the small (64x64 px) image. Returns 0 if no avatar is set for the user.

Variable GetUserAvatarLarge ( ulong id ) #

Returns a handle to the large avatar for the specified user.

Arguments

  • ulong id - Steam ID of the user.

Return value

A Steam handle to the large (128*128 px) image. Returns 0 if no avatar is set for the user.

SteamLeaderboard CreateLeaderboard ( string name ) #

Returns the leaderboard interface.

Arguments

  • string name - Name of the leaderboard to be created.

Return value

Leaderboard interface.

SteamLeaderboard GetLeaderboard ( int id ) #

Returns the leaderboard interface.

Arguments

  • int id - ID of the leaderboard to view.

Return value

Leaderboard interface.

void DeleteLeaderboard ( SteamLeaderboard[] OUT_leaderboard ) #

Deletes the leaderboard.

Arguments

  • SteamLeaderboard[] OUT_leaderboard - Leaderboard interface.
    Notice
    This output buffer is to be filled by the Engine as a result of executing the method.
Last update: 2024-12-13
Build: ()