Goonstation 13 - Modules - Types

code/datums/controllers/action_controls.dm

/datum/actionObject 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 ID for this action. If null, will be autogenerated in New() (by default, to the typepath of the action). Don't override this without a good reason. 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
/datum/action/barThis subclass has a progressbar that attaches to the owner to show how long we need to wait.
/datum/action/bar/iconIcon to use above the bar. Can also be a mutable_appearance; pretty much anything that can be converted into an image
/datum/action/bar/icon/callbackcalls a specified proc if it finishes without interruptions.