Taos API Reference
    Preparing search index...

    Function stampTemplate

    • Stamps an ASCII template via a set callback (shared by the engine's chunk builder and tools/samples so the two can't diverge). layers[dy][dz] is a row of chars along +X; palette maps chars to blocks (unmapped/space = skip); rot (0–3) rotates the footprint 90° clockwise about the origin.

      Parameters

      • set: (wx: number, wy: number, wz: number, block: BlockType) => void
      • wx: number
      • wy: number
      • wz: number
      • layers: readonly (readonly string[])[]
      • palette: Readonly<Record<string, BlockType>>
      • rot: number = 0

      Returns void