Interface ITimerSubscription
This interface contains all the timer subscription information necessary for an ITimerListener to be used inside the ITimerService. It is intentional that only Duration and StartTimestamp as the other time related getters just calculate of those values.
Namespace: IdleKit.Gameplay
Assembly: cs.temp.dll.dll
Syntax
public interface ITimerSubscription
Properties
Duration
The duration of this subscription in milliseconds.
Declaration
long Duration { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
EndTime
The DateTime end time of the subscription.
Declaration
DateTime EndTime { get; }
Property Value
Type | Description |
---|---|
DateTime |
EndTimestamp
The end time of this subscription in long timestamp format.
Declaration
long EndTimestamp { get; }
Property Value
Type | Description |
---|---|
Int64 |
HasStartTime
If this subscription contains an start time, if not ITimerService most likely to use GameTime as the start time.
Declaration
bool HasStartTime { get; }
Property Value
Type | Description |
---|---|
Boolean |
Loop
If this subscription is a looping subscription, which will keep repeating unless the ITimerListener that contains this ITimerSubscription is Unsubscribe(ITimerListener).
Declaration
bool Loop { get; }
Property Value
Type | Description |
---|---|
Boolean |
Priority
The higher the priority the ITimerListener would receive timed updates sooner than the other ITimerListener that are being evaluated in ITimerService.
Declaration
int Priority { get; }
Property Value
Type | Description |
---|---|
Int32 |
StartTime
The start time of this subscription in DateTime format.
Declaration
DateTime StartTime { get; }
Property Value
Type | Description |
---|---|
DateTime |
StartTimestamp
The start time of this subscription in long timestamp format.
Declaration
long StartTimestamp { get; set; }
Property Value
Type | Description |
---|---|
Int64 |