mwg API
    Preparing search index...

    Interface SemanticMessage<TType, TParams>

    A structured communication intent, not a finished sentence: a type naming what happened, plus the parameters a catalog needs to say it. The same message renders as a full log line, a compact HUD number, an accessibility announcement, or a debug dump, all from one event the simulation only has to produce once.

    params must already be interpolation-ready by the time a message reaches MessageFormatter.format - a game resolves any entity/item id to display text itself (typically through its own EntityTextResolver) while building the message, the same way it decides everything else about its own vocabulary. MWG only defines the shape.

    interface SemanticMessage<
        TType extends string = string,
        TParams extends Record<string, unknown> = Record<string, unknown>,
    > {
        params: TParams;
        type: TType;
    }

    Type Parameters

    • TType extends string = string
    • TParams extends Record<string, unknown> = Record<string, unknown>
    Index
    params: TParams
    type: TType