/datum/action

Object that owns this action. How long does this action take in ticks. When and how this action is interrupted. Current state of the action. TIME this action was started at Unique ID for this action. For when you want to remove actions by ID on a person. Promise that will be fulfilled when the action is finished or deleted. Finished = fulfilled with the action, deleted = fulfilled with null. How long the action spent interrupted. Used to calculate the remaining time when resuming. When the action was interrupted. Used to calculate interrupt_time
Procs | |
canRunCheck | Ran before onStart, onUpdate, onResume and in onRestart. Call interrupt here to stop the action from starting. |
---|---|
interrupt | This is called by the default interrupt actions |
loopStart | Called after restarting. Meant to cotain code from -and be called from- onStart() |
onDelete | Called when the action is complete and about to be deleted. Usable for cleanup and such. |
onEnd | Called when the action succesfully ends. |
onInterrupt | Called when the action fails / is interrupted. |
onRestart | Called when the action restarts (for example: automenders) |
onResume | Called when the action resumes - likely from almost ending. Arg is the action which would have cancelled this. |
onStart | Called when the action begins |
onUpdate | Called every tick this action is running. If you absolutely(!!!) have to you can do manual interrupt checking in here. Otherwise this is mostly used for drawing progress bars and shit. |
updateBar | Updates the animations |
Proc Details
canRunCheck
Ran before onStart, onUpdate, onResume and in onRestart. Call interrupt here to stop the action from starting.
interrupt
This is called by the default interrupt actions
loopStart
Called after restarting. Meant to cotain code from -and be called from- onStart()
onDelete
Called when the action is complete and about to be deleted. Usable for cleanup and such.
onEnd
Called when the action succesfully ends.
onInterrupt
Called when the action fails / is interrupted.
onRestart
Called when the action restarts (for example: automenders)
onResume
Called when the action resumes - likely from almost ending. Arg is the action which would have cancelled this.
onStart
Called when the action begins
onUpdate
Called every tick this action is running. If you absolutely(!!!) have to you can do manual interrupt checking in here. Otherwise this is mostly used for drawing progress bars and shit.
updateBar
Updates the animations