StructureCatalog
Registers jungleProps' structures with Props: rocks, logs, temple ruins in three styles and rope-bridge pieces (definitions from itself, LogCatalog, TempleCatalog and BridgeCatalog). Answers parts from the baked meshes with jungleMaterials surfaces per look, and colliders per kin…
StructureCatalog
Registers jungleProps' structures with Props: rocks, logs, temple ruins in three styles and rope-bridge pieces (definitions from itself, LogCatalog, TempleCatalog and BridgeCatalog). Answers parts from the baked meshes with jungleMaterials surfaces per look, and colliders per kind, variant and style (Props.colliders). Also SC.meta(kind, variant, style) (baked metadata: sizes, lip, roofY, stair numbers), SC.key, SC.baked, SC.surfaceOf, SC.kinds(). Props loads it on first use.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2StructureCatalog: registers the structure half of jungleProps with Props: rocks (river boulders, mossy boulders, wet slabs, clusters, a tileable cliff face, the waterfall lip, stepping stones), logs (mossy and hollow fallen logs, stumps, dead branches, a log bridge), temple ruins in three styles (`maya`, `khmer`, `candi`: stairs, tiers, blocks, doorways, pillars, walls, shrine, roof comb, prang, stela, giant head, rubble, terrace) and the rope bridge's planks and anchors. Props requires this module on first use. local Props = require("jungleProps.Props") Props.parts("templeBlockCarved", { look = "real", variant = 2, style = "khmer" }) Props.colliders("templeStair", { style = "maya" }) -- ramp + side walls, climbable flags, footstep surfaces local SC = require("jungleProps.StructureCatalog") SC.meta("waterfallLip", 2) -- { lip = { x, y, z, width }, size = ... } Every kind's parts are baked meshes read through BakedStructures (literal resolves) drawn with the jungleMaterials material of their surface (Props.material). Looks: real, painted and pixel draw the default geometry; toon a smoother bake; lowpoly a coarse flat-shaded bake. A form or LOD not baked falls back to the nearest lower baked LOD of that form.
templeTier(v: number) → void
| arg | type | description |
|---|---|---|
| v | number |
meshName(key: string, form: string, v: number, lod: number, part: string) → string
| arg | type | description |
|---|---|---|
| key | string | |
| form | string | |
| v | number | |
| lod | number | |
| part | string |
surfaceOf(kind: string, part: string) → string
The jungleMaterials surface a part of a kind is drawn with.
| arg | type | description |
|---|---|---|
| kind | string | |
| part | string |
mesh(name: string) → any
| arg | type | description |
|---|---|---|
| name | string |
pickLod(byLod: any, lod: number) → void
| arg | type | description |
|---|---|---|
| byLod | any | |
| lod | number |
key(kind: string, style: string?) → string
The bake key of a kind in a style (`templeTier_khmer`), or the kind itself for unstyled kinds.
| arg | type | description |
|---|---|---|
| kind | string | |
| style | string? |
meta(kind: string, variant: number?, style: string?) → any
The baked per-variant metadata of a kind (sizes, the waterfall lip point, stair rise and run, anchor points ...), or nil before the bake.
| arg | type | description |
|---|---|---|
| kind | string | |
| variant | number? | |
| style | string? |
baked(kind: string, style: string?) → boolean
True when a kind has baked meshes (for the style given).
| arg | type | description |
|---|---|---|
| kind | string | |
| style | string? |
partsFor(kind: string, o: any) → void
Every LOD answers the parts LOD0 has, in the same order (JungleProp swaps part i of LOD0 to part i of LOD1/2): a part a baked LOD dropped answers the empty mesh; a LOD never baked for this form reuses the nearest lower one.
| arg | type | description |
|---|---|---|
| kind | string | |
| o | any |
colMesh(key: string, v: number, part: string?) → any
a mesh collider for one variant: its baked _col mesh, else the body at LOD 1 (else LOD 0)
| arg | type | description |
|---|---|---|
| key | string | |
| v | number | |
| part | string? |
colMeshesAll(key: string, v: number) → void
every part a variant draws, each at LOD 1 (else LOD 0): the moss split moves a boulder's top triangles out of `body`, so a body-only collider has a hole exactly where a player stands
| arg | type | description |
|---|---|---|
| key | string | |
| v | number |
stairFill(list: { any }, meta: any?) →
Solid fill under a temple stair's walkable ramp: the ramp is a one-sided baked surface with nothing under it, and a player pushed at the strip between two flights could slip under the next flight's lower edge and wedge in the hollow inside the pyramid. Eight solid slices fill the space under the ramp (each 0.2 m below the ramp's lowest point over its slice, inside the side walls, so none ever stands above the walking surface), and a slab flush with the tier top covers the landing strip between this flight's top edge and the next flight's foot.
| arg | type | description |
|---|---|---|
| list | { any } | The stair's other colliders (its side walls give the walkable width). |
| meta | any? | The variant's baked meta (meta.ramp.profile: { z, y } points from the foot up to the landing). |
heightAt(z: number) → number
| arg | type | description |
|---|---|---|
| z | number |
collidersFor(kind: string, d: Def, o: any) → void
| arg | type | description |
|---|---|---|
| kind | string | |
| d | Def | |
| o | any |
_parts(kind: string, o: any) → void
late-bound entry points the registered functions call (a reload of this module replaces them in place)
| arg | type | description |
|---|---|---|
| kind | string | |
| o | any |
_colliders(kind: string, o: any) → void
| arg | type | description |
|---|---|---|
| kind | string | |
| o | any |
kinds( ) → void
Every kind this catalog registers, in order.
registerAll( ) → void
Register every defined kind with Props (re-run after adding definitions). The registered functions look SC._parts / SC._colliders up at call time, so a hot reload of this module reaches props already registered.
extend(name: string, ok: boolean, mod: any) → void
kinds defined in the companion catalogs (logs, temple, bridge) add themselves to DEFS
| arg | type | description |
|---|---|---|
| name | string | |
| ok | boolean | |
| mod | any |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing the 199 items nearest this part. It holds more than this page lists.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ 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".
Scoped to this part · feeds back into the world's score.