OffsetEvent
A class in Root.Township, Alta.Woodcutting.
Debounced call on a Timeline: runs an action once Offset hasn't been called for a minimum delay. Made with Timeline.CreateOffset.
- Listed in Crafting and making
Constructors
| Member | What it is |
|---|---|
OffsetEvent(Timeline timeline, TimeSpan minimumDelay, TimeSpan offsetDelay, Action delayedEvent) | Creates an OffsetEvent from timeline, minimumDelay, offsetDelay and delayedEvent. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private Action delayedEvent | The action to run. |
private TimeSpan lastOffset | Timeline time of the last Offset (or creation). |
private TimeSpan minimumDelay | Quiet time needed after the last offset before the action runs. |
private TimeSpan offsetDelay | Delay before each check. |
private Timeline timeline | Timeline used for timing and scheduling checks. |
Methods
| Member | What it is |
|---|---|
void Offset() | Pushes the action back, counting the delay from now. |
1 private and internal method
Used in
Members of other types that take, return or hold a OffsetEvent: