Table of Contents

Interface IAbortableAction

Namespace
FishMMO.Shared.Core
Assembly
FishMMO.Shared.dll

Opt-in interface for actions that can meaningfully fail at runtime (e.g. insufficient resources, missing controllers, validation rejection). When combined with StopChainOnFailure, returning false aborts the rest of the action chain for the current event. Most actions don't need this — their Execute(ICharacter, EventData) implementation simply runs and returns; only implement IAbortableAction when there is a genuine fail-and-bail outcome.

public interface IAbortableAction

Methods

TryExecute(ICharacter, EventData)

Attempts to perform the action. Returns false to signal that the action could not be performed (e.g. preconditions failed) so callers can short-circuit chains.

bool TryExecute(ICharacter initiator, EventData eventData)

Parameters

initiator ICharacter

The character initiating the action.

eventData EventData

Event data for the action.

Returns

bool

True on success; false when the action could not be performed.