Class CountdownExtensions
Functions that modify immutable countdowns to return a new countdown.
Inheritance
System.Object
CountdownExtensions
Namespace: Eco.Gameplay.Utils
Assembly: Eco.Gameplay.dll
Syntax
public static class CountdownExtensions : Object
Methods
Pause(ImmutableCountdown, Boolean, Double)
Declaration
public static ImmutableCountdown Pause(this ImmutableCountdown c, bool set, double overrideTimeLeft = -1)
Parameters
Type | Name | Description |
---|---|---|
ImmutableCountdown | c | |
System.Boolean | set | |
System.Double | overrideTimeLeft |
Returns
Type | Description |
---|---|
ImmutableCountdown |
ResetAndPause(ImmutableCountdown)
Returns a new countdown with the same duration as the referenced one.
Declaration
public static ImmutableCountdown ResetAndPause(this ImmutableCountdown c)
Parameters
Type | Name | Description |
---|---|---|
ImmutableCountdown | c |
Returns
Type | Description |
---|---|
ImmutableCountdown |