Skip to content

five-on-it / packages/sim/src/testing / flat

Variable: flat ​

const flat: 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? ​

optional cameras?: CameraDef[]

The security cameras, by name; absent when the level has none.

containers? ​

optional containers?: ContainerDef[]

The crates, lockers and items on the ground, by name; absent when the level has none.

districts? ​

optional districts?: DistrictDef[]

The districts, by name; absent when the level has none.

doors? ​

optional doors?: 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? ​

optional escalators?: EscalatorDef[]

The escalators, by their stairs' names; absent when the level has none.

garages? ​

optional garages?: GarageDef[]

The garages, by name; absent when the level has none.

groundHalfSize ​

groundHalfSize: number = 2000

ladders? ​

optional ladders?: LadderDef[]

The ladders, by name; absent when the level has none.

lifts? ​

optional lifts?: LiftDef[]

The lifts, by name; absent when the level has none.

meshes ​

meshes: object = {}

nailStrips ​

nailStrips: never[] = []

npcs? ​

optional npcs?: NpcDef[]

The NPCs its spawners place, by name; absent when the level has none.

placements ​

placements: never[] = []

roads ​

roads: never[] = []

schemaVersion? ​

optional schemaVersion?: number

The level's format (schema.ts' migrateLevel): 1 when absent; an older one is migrated before it is read.

shops? ​

optional shops?: ShopDef[]

The shops' counters, by name; absent when the level has none.

sky? ​

optional sky?: LevelSky

Its sky (its climate and the clock it starts at); absent: always clear, at noon.

spawners? ​

optional spawners?: VehicleSpawnerDef[]

The vehicle spawners (parking bays), by name; absent when the level has none.

spawns ​

spawns: SpawnPoint[]

Spawn points in order of preference.

water? ​

optional water?: WaterDef[]

The surfaces of water and lava, by name; absent when the level has none.