mwg API
    Preparing search index...

    Interface EffectClock

    The shape TurnClock.add needs - declared here rather than imported from mwg/world, so mwg/actors stays independent of it the same way every other pair of sibling modules is; TurnClock already satisfies this structurally, with nothing to wire up on its side.

    interface EffectClock {
        add(
            effect: {
                duration?: number;
                onExpire?: () => void;
                tick: (turn: number) => void;
            },
        ): symbol;
        remove(id: symbol): void;
    }
    Index
    • Parameters

      • effect: { duration?: number; onExpire?: () => void; tick: (turn: number) => void }

      Returns symbol