This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Режимы вывода изображения
Физика
Браузер SDK 2
Лицензирование и типы лицензий
Дополнения (Add-Ons)
Демонстрационные проекты
API Samples
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
Унифицированный язык шейдеров UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
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
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

Unigine.Plugins.SteamLeaderboard Class

SteamLeaderboard Class

Перечисления (Enums)

DATA_REQUEST#

ИмяОписание
GLOBAL = 0Used to query for a sequential range of leaderboard entries by leaderboard rank. The start and end parameters control the requested range. For example, you can display the top 10 on a leaderboard for your game by setting start to 1 and end to 10.
GLOBAL_AROUND_USER = 1Used to retrieve leaderboard entries relative a user's entry. The start parameter is the number of entries to retrieve before the current user's entry, and the end parameter is the number of entries after the current user's entry. The current user's entry is always included. For example, if the current user is #5 on the leaderboard, setting start to -2 and end to 2 will return 5 entries: ranks #3 through #7. If there are not enough entries in the leaderboard before or after the user's entry, Steam will adjust the range to try to return the number of entries requested. For example, if the user is #1 on the leaderboard and start is set to -2, end is set to 2, Steam will return the first 5 entries in the leaderboard.
FRIENDS = 2Used to retrieve all leaderboard entries for friends of the current user. The start and end parameters are ignored.
USERS = 3Used internally.

DISPLAY_TYPE#

ИмяОписание
NONE = 0This is only ever used when a leaderboard is invalid, you should never set this yourself.
NUMERIC = 1The score is just a simple numerical value.
TIME_SECONDS = 2The score represents a time, in seconds.
TIME_MILLISECONDS = 3The score represents a time, in milliseconds.

SORT_METHOD#

ИмяОписание
NONE = 0Only ever used when a leaderboard is invalid, you should never set this yourself.
ASCENDING = 1The top-score is the lowest number.
DESCENDING = 2The top-score is the highest number.

Properties

int NumEntries#

The existing number of entries.

SteamLeaderboard.DISPLAY_TYPE DisplayType#

The type of data to be displayed with the leaderboard.

SteamLeaderboard.SORT_METHOD SortMethod#

The order for the leaderboard sorting.

int EntryCount#

The

SteamLeaderboard.DATA_REQUEST LastDataRequest#

The

bool IsLastDownloadFailed#

The

bool IsLastUploadFailed#

The

bool IsDownloading#

The Checks the leaderboard downloading status.

bool IsUploading#

The Checks the leaderboard uploading status.

bool IsFound#

The value stating if the leaderboard was found.

string Name#

The leaderboard name.

int ID#

The leaderboard id.

Members


bool Find ( ) #

Returns the value stating if the leaderboard was created.

Return value

true if a leaderboard is created, otherwise false.

bool FindOrCreate ( SteamLeaderboard.SORT_METHOD sort_method, SteamLeaderboard.DISPLAY_TYPE display_type ) #

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

Arguments

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 ( SteamLeaderboard.DATA_REQUEST request, int num_before, int num_after ) #

Downloads a set of entries from the current leaderboard.

Arguments

  • SteamLeaderboard.DATA_REQUEST 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.

ulong GetEntryUserID ( int num ) #

Returns the ID of the user who this entry belongs to.

Arguments

  • int num - Number of an entry in a leaderboard.

Return value

The globally unique identifier for all Steam accounts.

int GetEntryRank ( int num ) #

Returns the global rank of the entry.

Arguments

  • int num - Number of an entry in a leaderboard.

Return value

The global rank of this entry ranging from [1..N], where N is the number of users with an entry in the leaderboard.

int GetEntryScore ( int num ) #

Returns the raw score of the entry as set in the leaderboard.

Arguments

  • int num - Number of an entry in a leaderboard.

Return value

The raw score as set in the leaderboard.
Last update: 13.12.2024
Build: ()