five-on-it / packages/sim/src/testing / flat
Variable: flat
constflat:object
Defined in: packages/sim/src/testing.ts:30
The core level's spawn points on open ground, big enough for a top-speed run.
Type Declaration
cameras?
optionalcameras?:CameraDef[]
The security cameras, by name; absent when the level has none.
containers?
optionalcontainers?:ContainerDef[]
The crates, lockers and items on the ground, by name; absent when the level has none.
districts?
optionaldistricts?:DistrictDef[]
The districts, by name; absent when the level has none.
doors?
optionaldoors?:DoorDef[]
The doors, by name; absent when the level has none.
dummies
dummies:
SpawnPoint[]
Range dummies: people who stand at these posts (the character's centre) to be shot at, and respawn there.
escalators?
optionalescalators?:EscalatorDef[]
The escalators, by their stairs' names; absent when the level has none.
garages?
optionalgarages?:GarageDef[]
The garages, by name; absent when the level has none.
groundHalfSize
groundHalfSize:
number=2000
ladders?
optionalladders?:LadderDef[]
The ladders, by name; absent when the level has none.
lifts?
optionallifts?:LiftDef[]
The lifts, by name; absent when the level has none.
meshes
meshes:
object={}
nailStrips
nailStrips:
never[] =[]
npcs?
optionalnpcs?:NpcDef[]
The NPCs its spawners place, by name; absent when the level has none.
placements
placements:
never[] =[]
roads
roads:
never[] =[]
schemaVersion?
optionalschemaVersion?:number
The level's format (schema.ts' migrateLevel): 1 when absent; an older one is migrated before it is read.
shops?
optionalshops?:ShopDef[]
The shops' counters, by name; absent when the level has none.
sky?
optionalsky?:LevelSky
Its sky (its climate and the clock it starts at); absent: always clear, at noon.
spawners?
optionalspawners?:VehicleSpawnerDef[]
The vehicle spawners (parking bays), by name; absent when the level has none.
spawns
spawns:
SpawnPoint[]
Spawn points in order of preference.
water?
optionalwater?:WaterDef[]
The surfaces of water and lava, by name; absent when the level has none.