StructureCatalog.module
This package holds more than this page lists. See all of its files in its world.
README.md
StructureCatalog
Registers alpineProps' 27 hut parts and trail props with AlpineProps (and through it forestProps' Props), category structure. AlpineProps loads it on first use; ask AlpineProps.parts(kind, opts) for draws and this module only for colliders and triangle counts.
local AP = require("alpineProps.AlpineProps")
AP.parts("roofShingle", { lod = 0, season = "winter", look = "painted" }) -- snow on the roof
require("alpineProps.StructureCatalog").colliders("lookout") -- every walkable box
- Kinds (
SC.KINDS): logWallSection, logCorner, stoneWallSection, timberWallSection, wallWindow, wallDoor, gableLog, gableStone, gableTimber, roofShingle, roofSlate, aFrameRoof, chimneyStone, porchDeck, stoneFoundation, bench, woodpile, waterTrough, signpost, signArm, waymarkPost, footbridge, summitCross, lookout, trailSteps, fenceRail, infoBoard. - Each entry carries forestProps'
collider(one box),colliders(every box of a multi-box kind: decks, rails, piers, steps),variantColliders[v],surface(woodorstone) for footsteps andvariantNames. SC.parts(kind, o, snow),SC.colliders(kind, variant),SC.tris(kind, variant, lod).- Parts come from
BakedStructures; a part with no bake yet is built at runtime once per session so a kind always draws. Materials come fromalpineMaterials.AlpineMaterials.