Show / Hide Table of Contents

    Interface ITimerListener

    A class that is able to receive updates and event callbacks from the ITimerService. This class wraps an ITimerSubscription that contains subscription information.

    Namespace: IdleKit.Gameplay
    Assembly: cs.temp.dll.dll
    Syntax
    public interface ITimerListener

    Properties

    Progress

    Returns value between 0 and 1

    Declaration
    float Progress { get; }
    Property Value
    Type Description
    Single

    TimerSubscription

    Returning the subscription information that is required by the ITimerService

    Declaration
    ITimerSubscription TimerSubscription { get; }
    Property Value
    Type Description
    ITimerSubscription

    Methods

    OnTimerEnded(Int64)

    The callback method that gets called whe the Duration has elapsed.

    Declaration
    void OnTimerEnded(long count)
    Parameters
    Type Name Description
    Int64 count

    The number of time that Duration has elapsed since the ITimerListener is subscribed. It is always 1 for a non-looping. ITimerSubscription

    UpdateProgression(Single)

    The callback method that gets called every time that the time updates in the ITimerService.

    Declaration
    void UpdateProgression(float progression)
    Parameters
    Type Name Description
    Single progression

    The progression between 0 - 1f based on Duration that contains this ITimerListener.

    Back to top Copyright © 2020 East Side Games Inc.