Saxonberg Server API
    Preparing search index...

    One entry in the engine bootstrap manifest. Owned by BootstrapManager (the consumer of this shape); imported from mudlib's bootstrap.ts so the data file can declare its array with the right type.

    interface BootstrapEntry {
        awaitInit?: (clone: Stuff) => Promise<void>;
        dependsOn?: string[];
        templatePath?: string;
        templatePathPrefix?: string;
    }
    Index

    Properties

    awaitInit?: (clone: Stuff) => Promise<void>

    Optional async init beyond postRegister's sync surface.

    dependsOn?: string[]

    Other entries' templatePaths that must complete before this.

    templatePath?: string

    Path of the template to clone — the identifier in the domain collection AND the runtime location of the resulting clone. E.g., /obj/EventRegistry.

    Exactly one of templatePath / templatePathPrefix must be set.

    templatePathPrefix?: string

    Prefix to expand into all strict descendants in the domain collection. The manager queries Template.findDescendants(prefix) at boot and clones each match in depth-ascending order (shorter paths first, so ancestor clades exist before their descendants).

    Useful for clusters of singletons that all need to be live but shouldn't bloat the manifest — species clades, materials, biomes. The prefix entry itself is NOT cloned (only descendants); if the prefix node itself needs to exist, add a sibling templatePath entry for it.

    dependsOn and awaitInit are not supported on prefix entries — the depth-ascending order within the expansion stands in for explicit deps, and per-clone async init isn't expressible when the entry expands to N clones.

    Exactly one of templatePath / templatePathPrefix must be set.