Skip to content

stanceOf beta ​

Function of @v12-engine/engine

ts
export declare function stanceOf(entity: Entity, stances?: readonly StanceDef[]): StanceDef;

The stance of a unit, as a definition: the one its component names, else the default (the first of stances with the default's id, else the first of them)