hex-world
    Preparing search index...

    Interface FactionDescriptor

    A claimable faction: the owner ids stored per cell are these id strings. Fully JSON-serializable, so a faction roster rides through a .hexpack manifest or a game save next to the map.

    interface FactionDescriptor {
        id: string;
        name: string;
        color: number;
        borderColor?: number;
    }
    Index

    Properties

    id: string

    Stable id written into the map's metadata channel. Keep it short — it is stored per owned cell.

    name: string
    color: number

    Territory tint. Fills use it at fillOpacity; borders at full strength unless borderColor overrides.

    borderColor?: number

    Border line color. Defaults to color.