Log inGet started
Package

racingKit.package

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

materials

Every material the kit draws with, resolved once by literal name (so a publish pins each one) and looked up by a short key. build, gates and OilSlick ask it for materials by the keys that surfaces and gate parts name.

Keys: the kit's own (kitPaint, kitGloss, kitMetal, kitRubber, glowCyan, glowMagenta, glowAmber, glowGreen, glowRed, glowWhite, holoGlass, channelWater, neonTrack, neonEdge, racingLine, kerb), paving from driveSurfaces (tarmac, concrete) and natural grounds from groundMaterials (dirt, dryGrass, ice, packedSnow, freshSnow, forestFloor, gravel, shortGrass, mud).

Functions

  • get(key): the material for a key, or kitPaint for an unknown key.
  • has(key): whether key names a material here.