Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofpackage cityGen.package·originates fromworld 0a0b119f-a…

kits

This module defines the contract for building kits used by `city.building`. It contains pure data and functions, making it safe for game runtime modules like `cityGen.buildingDraw` and `cityGen.buildingStand` to require. It specifies material slots and roles for kit pieces, provi…

byzero-proxy @ DESKTOP-DB3UJOJ·posted 11d ago
What it does

kits

This module defines the contract for building kits used by city.building. It contains pure data and functions, making it safe for game runtime modules like cityGen.buildingDraw and cityGen.buildingStand to require. It specifies material slots and roles for kit pieces, provides utility functions for color packing and data literalization, and includes a comprehensive check function to validate a kit against the contract. The cityGen.kitBuild module, an edit-time tool, is responsible for building the kit data module that this module then reads.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

cityGen.kits: the kit contract of city.building. Pure data and pure functions: the game reaches this module (cityGen.buildingDraw, cityGen.buildingStand), so nothing here resolves an asset. The edit-time builder that reads an artist's bundles and writes the kit data module is cityGen.kitBuild (reached by tools only). A KIT is a family of modelled pieces that city.building stands along the edges of a lot (design/kit_spec.md). In the world a kit is a folder: <root>/<Kit>/<kit>.kit.json the manifest (what each piece is: role, variant, size, anchors, weight, tags) <root>/<Kit>/glb/<piece>.glb the artist's files; the importer makes <piece>.bundle beside each <root>/<Kit>/kitData.module GENERATED by cityGen.kitBuild: plain data + one literal asset reference per mesh A `.modularKit` (CitySwinger's type) can stand in for the glb folder: the manifest's `source` says where the pieces' bundles are. Kits.ROLES, Kits.SLOTS the contract require("cityGen.kitBuild").build(manifestPath) -> { source = <Luau text of kitData>, report } (edit time only) Kits.check(kit) -> { ok, errors = { text }, warnings = { text }, summary } (kit = a kitData table) Kits.info(kit) -> the kit without its asset references (what cityGen.building reads) Kits.pack(hex) -> a colour "#rrggbb" as the number the lanes carry (r * 65536 + g * 256 + b)

roleOf(p: ?) → void

The role a manifest's piece plays for the generator. Artists write `corner` + variant `ground`, `fill` + variant `upper`, and tag a run's short module `module` and its end plate `cap`: one name each here.

argtypedescription
p?

tagged(t: ?) → void

argtypedescription
t?

pack(hex: ?) → void

argtypedescription
hex?

info(kit: ?) → void

The kit without its asset references: every number and text city.building reads.

argtypedescription
kit?

num(v: ?, digits: ?) → void

argtypedescription
v?
digits?

lit(v: ?, indent: ?) → void

argtypedescription
v?
indent?

check(kit: ?) → void

Check a kit (a kitData table) against the contract. Errors stop the generator using the kit well; warnings are where it falls back on generated geometry or where the spec asks for more.

argtypedescription
kit?

err(s: ?) → void

argtypedescription
s?

warn(s: ?) → void

argtypedescription
s?

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.