hex-world
    Preparing search index...

    Class MapEdit

    The result of a committed map transaction: the set of touched cells with before/after snapshots, replayable in either direction.

    Feed cells to ChunkManager.markDirtyCells() after undo()/redo() so the affected geometry rebuilds. This is the building block for editor-style undo/redo — one MapEdit per user action.

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    cells: readonly { col: number; row: number }[]

    Every cell this edit touched (whether or not its value actually changed).

    Accessors

    Methods

    • Restore every touched cell to its pre-transaction state.

      Returns void

    • Re-apply the transaction's final state to every touched cell.

      Returns void