Construction options for a BodyPart instance.

interface Options {
    index: number;
    locations: Indexed<sohl.entity.body.BodyLocation.Data>[];
    parent: SohlLogic<any>;
    zone: sohl.entity.body.BodyZone;
}

Hierarchy (View Summary)

Properties

index: number

Zero-based index of this part within the flat structure.parts array.

This part's locations, each paired with its flat locations index.

parent: SohlLogic<any>

The Logic that owns the entity. Required (the constructor throws without it) and transient — held in memory, never written to JSON.

Owning body zone (supplies actor and body-owner logic).