Skip to content

IActionReady

namespace Griff.Scenes;
public interface IActionReady

A component whose actions (see ActionAttribute) can’t always be done: a fighter’s spell without the mana, any move off its turn. A Button whose Action is Do is faded while none of its targets can do it. A script component can implement it too.

public abstract bool IsReady(string action)

True if its action called action (the action’s name without spaces, e.g. “CastSpell”) can be done now.