This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Landscape Tool
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
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
Content Creation
Content Optimization
Materials
Art Samples
Tutorials
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

SteamLeaderboard Class

Warning
The scope of applications for UnigineScript is limited to implementing materials-related logic (material expressions, scriptable materials, brush materials). Do not use UnigineScript as a language for application logic, please consider C#/C++ instead, as these APIs are the preferred ones. Availability of new Engine features in UnigineScipt (beyond its scope of applications) is not guaranteed, as the current level of support assumes only fixing critical issues.

SteamLeaderboard Class

Members


int getID ( ) #

Returns the leaderboard ID.

Return value

Leaderboard ID.

string getName ( ) #

Returns the leaderboard name.

Return value

Leaderboard name.

int isFound ( ) #

Returns the value stating if the leaderboard was found.

Return value

1 if the leaderboard is found, otherwise 0.

bool find ( ) #

Returns the value stating if the leaderboard was created.

Return value

true if a leaderboard is created, otherwise false.

bool findOrCreate ( int sort_method, int display_type ) #

Checks if a leaderboard is created, it will create it if it's not yet created.

Arguments

  • int sort_method - The sort order of the new leaderboard if it's created.
  • int display_type - The display type (used by the Steam Community web site) of the new leaderboard if it's created.

Return value

true if a leaderboard is created, otherwise false.

bool uploadScore ( int score, bool forced = false ) #

Uploads the user score to the current leaderboard.

Arguments

  • int score - The value to store in the current leaderboard.
  • bool forced - If set to true, the leaderboard will always replace score with specified; if set to false, the leaderboard will keep user's best score.

Return value

true if , otherwise false.

bool downloadScores ( int request, int num_before, int num_after ) #

Downloads a set of entries from the current leaderboard.

Arguments

  • int request - Type of requested data, one of the DATA_REQUEST values.
  • int num_before - Number of entries before the current user.
  • int num_after - Number of entries after the current user.

Return value

false if a leaderboard has not been selected yet, otherwise true.

int isUploading ( ) #

Checks the leaderboard uploading status.

Return value

true if the leaderboard is uploading, otherwise false.

int isDownloading ( ) #

Checks the leaderboard downloading status.

Return value

true if the leaderboard is downloading, otherwise false.

int isLastUploadFailed ( ) #

Return value

true if , otherwise false.

int isLastDownloadFailed ( ) #

Return value

int getLastDataRequest ( ) #

Return value

int getEntryCount ( ) #

Return value

int getSortMethod ( ) #

Returns the order for the leaderboard sorting.

Return value

Order for the leaderboard sorting, one of the values.

int getDisplayType ( ) #

Returns the type of data to be displayed with the leaderboard.

Return value

Type of data to be displayed with the leaderboard, one of the values.

int getNumEntries ( ) #

Returns the existing number of entries.

Return value

Number of entries.

long getEntryUserID ( int num ) #

Arguments

  • int num -

Return value

int getEntryRank ( int num ) #

Arguments

  • int num -

Return value

int getEntryScore ( int num ) #

Arguments

  • int num -

Return value

Last update: 2021-04-29
Build: ()