Construction options for a BodyLocation instance.

interface Options {
    bodyPart: sohl.entity.body.BodyPart;
    index: number;
    parent: SohlLogic<any>;
}

Hierarchy (View Summary)

Properties

Properties

Owning body part

index: number

Zero-based index of this location within the flat structure.locations array.

parent: SohlLogic<any>

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