mwg API
    Preparing search index...

    Interface MwlRuntimeOptions

    interface MwlRuntimeOptions {
        hooks?: MwlHookRegistry;
        onMessage?: (message: MwlMessage) => void;
        onTrace?: (event: MwlTraceEvent) => void;
        persistence?: MwlPersistenceOptions;
        random?: Random.Generator;
        resolveMap?: (file: string) => string;
        world?: MwlWorld;
    }
    Index
    onMessage?: (message: MwlMessage) => void

    called for every [message] command, with its speaker and portrait

    onTrace?: (event: MwlTraceEvent) => void

    opt-in observer for event lifecycle, variable writes and content errors

    persistence?: MwlPersistenceOptions

    schema version and migrations used by save/restore; defaults to version 1

    random?: Random.Generator

    Seeds the stream HookWorld.random draws from. Defaults to resuming world.random's saved state when the given (or restored) world already carries one, otherwise a fresh ambient generator. Inject your own for a reproducible run independent of what world carries, for example a network match seeded from LockstepWelcome.seed.

    resolveMap?: (file: string) => string

    resolve a [map] file= reference to its text

    world?: MwlWorld