@alpaca-software/40kdc-data
    Preparing search index...

    Interface UnitLegality

    The loadout-legality verdict for one resolved roster unit.

    interface UnitLegality {
        unitId: string;
        unitIndex: number;
        modelCount: number;
        violations: Violation[];
    }
    Index

    Properties

    unitId: string

    Resolved unit id.

    unitIndex: number

    The unit's position in roster.units (source order).

    modelCount: number

    Model count the loadout was checked against.

    violations: Violation[]

    Every count/swap rule the unit's loadout breaks; empty when legal.