Skip to content

ComponentActions

namespace Griff.Scenes;
public static class ComponentActions

The actions (ActionAttribute) and powered properties (PoweredAttribute) of component types, found the first time each type is asked about and kept for as long as it’s loaded.

public static ComponentAction? Find(Component component, ReadOnlySpan<char> name)

The action of component called name (see IsCalled), or null.

public static IReadOnlyList<ComponentAction> Of(Type type)

The actions of type (its base types’ too), in the order they’re declared, base types first.

public static IReadOnlyList<ComponentAction> On(IEnumerable<Entity> entities)

Every action of entities’ components, each once, in the order the entities and their components come: what a Trigger on them can do.