Saxonberg Server API
    Preparing search index...

    Witness hook fired on a light source's immediate environment when setEmittedFlux or setEmittedColorTemperature results in a different stored emission. Optional — implement only the host Containers that care (typically a Location's caching layer or a Vessel's lit-state observer).

    Lives next to LightSourceMixin (the firer) so the cross-module contract reads from one place. Receivers compose this interface structurally and rely on TypeScript's structural typing — no mixin marker.

    interface LightSourceObserver {
        onLightSourceChanged?(
            source: Stuff,
            oldFlux: Quantity<"lumen">,
            newFlux: Quantity<"lumen">,
            oldColorTemperature: Quantity<"K"> | null,
            newColorTemperature: Quantity<"K"> | null,
        ): void;
    }
    Index

    Methods