Table of Contents

Interface ICancellable

Namespace
Uncreated.Warfare.Events.Models
Assembly
Uncreated.Warfare.dll

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

bool

IsCancelled

If this execution has been cancelled.

bool IsCancelled { get; }

Property Value

bool

Methods

Cancel(bool)

Cancel the execution which will keep the next event listener from running.

void Cancel(bool cancelAction = true)

Parameters

cancelAction bool

Also 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()