Skip to content

five-on-it / apps/tools/src/recipe / levelToRecipe

Function: levelToRecipe() ​

levelToRecipe(name, level): object

Defined in: apps/tools/src/recipe.ts:167

A recipe for a level: its block placements dressed with the city kit's pieces at the same coordinates (a tall building a tower, a low one a shop or a house, a slab, a terrace, a ramp, a flight of stairs with its hidden slope), its roads, spawns, strips and dummies as they are.

Parameters ​

name ​

string

level ​

LevelData

Returns ​

object

dummies ​

dummies: object[]

groundHalfSize ​

groundHalfSize: number

kits ​

kits: string[]

nailStrips ​

nailStrips: object[]

name ​

name: string

placements ​

placements: object[]

roads ​

roads: object[]

spawns ​

spawns: object[]