Action
Fields
Field
Description
State
Is the event active or not?
Methods
SubscribeToStart
PUT
SubscribeTo(Event newEvent)
Invoking this method will subscribe the event you pass to this Action, making it a listener to the start event.
Path Parameters
newEvent
object
Determines the method you want to subscribe to this Action's start.
SubscribeToStop
PUT
SubscribeToStop(Event newEvent)
Invoking this method will subscribe the event you pass to this Action, making it a listener to the stop event.
Path Parameters
newEvent
object
Determines the method you want to subscribe to this Action's stop.
AddStartTrier
PUT
AddStartTrier(TryDelegate newTrier)
Invoking this method will make the function you passed the new start trier for this Action.
Path Parameters
newTrier
boolean
Function with a return type of boolean that will be used as a trier for this Action.
AddStopTrier
PUT
AddStopTrier(TryDelegate newTrier)
Invoking this method will make the function you passed the new stop trier for this Action.
Path Parameters
newTrier
boolean
Function with a return type of boolean that will be used as a trier for this Action.
TryStart
POST
TryStart()
Invoking this method will try to start this Action, meaning that it will first invoke the triers and make sure they all return true before starting.
TryStop
POST
TryStop()
Invoking this method will try to stop this Action, meaning it will first invoke the triers and make sure they all return before properly stopping it.
ForceStart
POST
ForceStart()
Invoking this method will allow you to directly skip over the triers and start the Action.
ForceStop
POST
ForceStop()
Invoking this method will allow you to directly skip over the triers and stop the Action. This forceful approach is necessary sometimes.
ForceToggle
POST
ForceToggle()
Invoking this method will forcefully switch the Action's state. Actions that are started will be forcefully stopped, and ones that are stopped will be forcefully started.
Debug
OPTIONS
Debug(bool debugAttempts = false, string name = "Debug")
Logs the names of the methods subscribed to this Attempt, and the Triers added.
Path Parameters
Name
string
Simple name that you can give this debug, making it easier to not confuse it when debugging other things.
DebugAttempts
boolean
​Determines whether you want to debug the triers of this attempt, or only the listeners.
Last updated
Was this helpful?