Skip to main content

CommonDrawFindPose

Callable


  • Finds the correct pose to draw for drawable layer for the provided character from the provided list of allowed poses


    Parameters

    • C: Character

      The character to check for poses against

    • AllowedPoses: Partial<Record<keyof AssetPoseMap, readonly AssetPoseName[]>>

      The list of permitted poses for the current layer

    Returns AssetPoseName

    • The name of the pose to draw for the layer, or an empty string if no pose should be drawn