hex-world
    Preparing search index...

    Interface UnitManagerOptions

    interface UnitManagerOptions {
        scene: Scene;
        map: HexMap;
        layout: HexLayout;
        fogData?: FogData;
        hideUnitsInFog?: boolean;
    }
    Index

    Properties

    scene: Scene
    map: HexMap
    layout: HexLayout
    fogData?: FogData

    Optional fog-of-war data. Units with fogRevealRange > 0 will update it as they move.

    hideUnitsInFog?: boolean

    Hide units standing on cells that are explored but not currently visible — the classic ghost state, where memory shows you the terrain you mapped but not who is walking on it right now. Ignored when no fogData is given.

    A unit with fogRevealRange > 0 always sees its own cell, so this only ever hides units that grant no vision (enemies, neutrals). Default true.