Show / Hide Table of Contents

    Interface IAchievement

    Provides an interface to communicate with game server about local players progress towards completing achievement.

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

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

    Properties

    Id

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

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

    IsCompleted

    The bool value indicates whether the current player has completed this achievement. (read-only)

    Declaration
    bool IsCompleted { get; }
    Property Value
    Type Description
    System.Boolean

    LastReportedDate

    The last time that progress on the achievement was successfully reported to game server. (read-only)

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

    PercentageCompleted

    The percentage describes how far the player has progressed on this achievement.

    Declaration
    double PercentageCompleted { get; set; }
    Property Value
    Type Description
    System.Double

    PlatformId

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

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

    Methods

    ReportProgress(CompletionCallback)

    Reports the progress of this achievement.

    Declaration
    void ReportProgress(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