Interface ICancellable
Represents event arguments which can cancel the execution of their events.
public interface ICancellable
Properties
IsActionCancelled
If the action is also cancelled.
bool IsActionCancelled { get; }
Property Value
IsCancelled
If this execution has been cancelled.
bool IsCancelled { get; }
Property Value
Methods
Cancel(bool)
Cancel the execution which will keep the next event listener from running.
void Cancel(bool cancelAction = true)
Parameters
cancelActionboolAlso cancel whatever action the event represents, such as placing a structure.
CancelAction()
Cancel only the action but allow more event handlers to be ran.
void CancelAction()
ResumeAction()
Resume (or un-cancel) the action.
void ResumeAction()