Saxonberg Server API
    Preparing search index...

    Interface CommandContributions

    Per-bucket command contributions a class can declare via static commandContributions: CommandContributions. Mixins, concrete Stuff classes, and shadows all use the same shape.

    Each bucket holds YAML filenames; CommandApi.getCommand resolves them at runtime.

    • self — commands the host can issue against itself (e.g. inventory, look).
    • inventory — commands the host gains when this thing is in its inventory (e.g. a wand grants zap).
    • environment — commands the host gains when this thing is in its environment (e.g. a notice board grants read).
    • peers — commands the host gains when this thing is a peer CommandGiver in its environment (e.g. a conversational NPC grants tell).

    Discovery looks for the bucket as either a filename array or undefined (treated as no contribution). Empty arrays are fine.

    interface CommandContributions {
        environment?: string[];
        inventory?: string[];
        peers?: string[];
        self?: string[];
    }
    Index

    Properties

    environment?: string[]
    inventory?: string[]
    peers?: string[]
    self?: string[]