mwg API
    Preparing search index...

    Interface MwlTagSchema

    interface MwlTagSchema {
        acyclicRefs?: readonly string[];
        attributes?: Readonly<Record<string, MwlAttributeType>>;
        cardinality?: Readonly<Record<string, { max?: number; min?: number }>>;
        children?: readonly string[];
        openAttributes?: MwlValueType;
        openChildren?: boolean;
        refTargets?: Readonly<Record<string, string>>;
        required?: readonly string[];
    }
    Index
    acyclicRefs?: readonly string[]

    ref attributes which must form an acyclic graph

    attributes?: Readonly<Record<string, MwlAttributeType>>

    fixed attributes, name -> value type

    cardinality?: Readonly<Record<string, { max?: number; min?: number }>>

    minimum and maximum number of children by tag

    children?: readonly string[]

    allowed child tags; when omitted, any child is accepted

    openAttributes?: MwlValueType

    When set, any attribute name is accepted on this tag and every value is checked as this type. Open data maps need this: the keys of a movement table ([movement_costs], [defense], [resistance]) are game-defined terrain or damage-type ids, not schema-defined attribute names.

    openChildren?: boolean

    when true, children are accepted even though children is set

    refTargets?: Readonly<Record<string, string>>

    target tag for declared ref attributes, or * for any id-bearing node

    required?: readonly string[]

    attributes required on every occurrence of this tag