# Docs inputs for the Build engine sections of the image / scene pages (tools/fixtures.py; tools/docs_check.py explains # the inputs): an ART file of three tiles and a random PALETTE.DAT written here (BUILDINF.TXT layout), and the two-room # map of tools/fixtures/buildmap.py. # tests/gen/docs_build.luau { files = { [name] = bytes }, vars = { artBytes = "TILES000.ART", ... } } import importlib.util, os, struct INPUTS = ["tools/docs_check.py", "tools/fixtures/buildmap.py"] def mod(ctx, path, name): spec = importlib.util.spec_from_file_location(name, os.path.join(ctx.root, path)) m = importlib.util.module_from_spec(spec) spec.loader.exec_module(m) return m def art(rng, first, tiles): """tiles: [(w, h, picanm)]; column-major random indices""" out = bytearray(struct.pack("<4I", 1, 0, first, first + len(tiles) - 1)) out += b"".join(struct.pack("