Body, Mind & Soul — API Reference
    Preparing search index...

    Function _renderTemplate

    • Local template-placement renderer — two phases:

      1. Player positions the region shape (left-click to set).
      2. A temporary RegionDocument is created so the area is visible on-canvas. Player clicks Submit to confirm or Cancel to abort. The temp region is deleted either way (unless keepRegion is true); containment testing runs against the placed shape.

      Parameters

      • spec: { templateConfig: object }
      • Optionalopts: { isLastDeclaration?: boolean; keepRegion?: boolean; requestId?: string } = {}
        • OptionalisLastDeclaration?: boolean

          When false, replace the Confirm/Submit button with a "Next" button (class "bms-tile-picker-next"). "Next" advances to the next placement without being the final submission of the full sequence.

        • OptionalkeepRegion?: boolean

          When true, skip deleting tempRegionDoc after confirmation and return it in the result. Used for multi-template pre-collect so previously placed regions stay visible during subsequent placements.

        • OptionalrequestId?: string

      Returns Promise<{ shapes: object[]; tempRegionDoc?: any; tokenUuids: string[] }>