Throttle Constructor (Int32, TimeSpan, RunStatus, Composite) |
Creates a 'throttle' composite. This composite limits the number of times the child
returns RunStatus.Success within a given time span. Returns cappedStatus if limit reached,
otherwise returns result of child
Namespace:
ff14bot.Behavior
Assembly:
RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax public Throttle(
int limit,
TimeSpan timeFrame,
RunStatus limitStatus,
Composite child
)
Parameters
- limit
- Type: SystemInt32
max number of occurrences - timeFrame
- Type: SystemTimeSpan
time span for occurrences - limitStatus
- Type: TreeSharpRunStatus
RunStatus to return when limit reached - child
- Type: TreeSharpComposite
composite children to tick (run)
See Also