Show / Hide Table of Contents

    Interface IScore

    Provides an interface to read the score that was earned by the user.

    Namespace: VoxelBusters.EssentialKit
    Assembly: cs.temp.dll.dll
    Syntax
    public interface IScore
    Remarks

    \note Your game must authenticate the local user before using any features.

    Properties

    FormattedValue

    The players score as a localized string. (read-only)

    Declaration
    string FormattedValue { get; }
    Property Value
    Type Description
    System.String

    LastReportedDate

    The date and time when score was reported. (read-only)

    Declaration
    DateTime LastReportedDate { get; }
    Property Value
    Type Description
    DateTime

    LeaderboardId

    An unique string used to identify the leaderboard across all the supported platforms. (read-only)

    Declaration
    string LeaderboardId { get; }
    Property Value
    Type Description
    System.String

    LeaderboardPlatformId

    A string used to identify the leaderboard in the current platform. (read-only)

    Declaration
    string LeaderboardPlatformId { get; }
    Property Value
    Type Description
    System.String

    Player

    The player that earned the score. (read-only)

    Declaration
    IPlayer Player { get; }
    Property Value
    Type Description
    IPlayer

    Rank

    The position of the score in leaderboard. (read-only)

    Declaration
    long Rank { get; }
    Property Value
    Type Description
    System.Int64

    Value

    The score earned by the player.

    Declaration
    long Value { get; set; }
    Property Value
    Type Description
    System.Int64

    Methods

    ReportScore(CompletionCallback)

    Reports the score to game server.

    Declaration
    void ReportScore(CompletionCallback callback)
    Parameters
    Type Name Description
    CompletionCallback callback

    Callback that will be called after operation is completed.

    Back to top Cross Platform Native Plugins 2.0 : Essential Kit from Voxel Busters