five-on-it / packages/world/src/level / LevelData
Interface: LevelData
Defined in: packages/world/src/level.ts:671
Everything the simulation needs to build a level.
Properties
cameras?
optionalcameras?:CameraDef[]
Defined in: packages/world/src/level.ts:693
The security cameras, by name; absent when the level has none.
containers?
optionalcontainers?:ContainerDef[]
Defined in: packages/world/src/level.ts:691
The crates, lockers and items on the ground, by name; absent when the level has none.
districts?
optionaldistricts?:DistrictDef[]
Defined in: packages/world/src/level.ts:703
The districts, by name; absent when the level has none.
doors?
optionaldoors?:DoorDef[]
Defined in: packages/world/src/level.ts:689
The doors, by name; absent when the level has none.
dummies
dummies:
SpawnPoint[]
Defined in: packages/world/src/level.ts:687
Range dummies: people who stand at these posts (the character's centre) to be shot at, and respawn there.
escalators?
optionalescalators?:EscalatorDef[]
Defined in: packages/world/src/level.ts:709
The escalators, by their stairs' names; absent when the level has none.
garages?
optionalgarages?:GarageDef[]
Defined in: packages/world/src/level.ts:699
The garages, by name; absent when the level has none.
groundHalfSize
groundHalfSize:
number
Defined in: packages/world/src/level.ts:675
Half-size of the square ground plane (m), an implicit slab with its top at y = 0.
ladders?
optionalladders?:LadderDef[]
Defined in: packages/world/src/level.ts:705
The ladders, by name; absent when the level has none.
lifts?
optionallifts?:LiftDef[]
Defined in: packages/world/src/level.ts:707
The lifts, by name; absent when the level has none.
meshes
meshes:
Record<string,MeshDef>
Defined in: packages/world/src/level.ts:677
The meshes the placements share, by key.
nailStrips
nailStrips:
NailStripDef[]
Defined in: packages/world/src/level.ts:685
Nail strips that pop the tyres rolling over them.
npcs?
optionalnpcs?:NpcDef[]
Defined in: packages/world/src/level.ts:695
The NPCs its spawners place, by name; absent when the level has none.
placements
placements:
PlacementDef[]
Defined in: packages/world/src/level.ts:679
Every placed mesh, in export order (kind, then name).
roads
roads:
RoadDef[]
Defined in: packages/world/src/level.ts:681
Roads: where the streets are, for the AI drivers and the maps; no collider.
schemaVersion?
optionalschemaVersion?:number
Defined in: packages/world/src/level.ts:673
The level's format (schema.ts' migrateLevel): 1 when absent; an older one is migrated before it is read.
shops?
optionalshops?:ShopDef[]
Defined in: packages/world/src/level.ts:701
The shops' counters, by name; absent when the level has none.
sky?
optionalsky?:LevelSky
Defined in: packages/world/src/level.ts:713
Its sky (its climate and the clock it starts at); absent: always clear, at noon.
spawners?
optionalspawners?:VehicleSpawnerDef[]
Defined in: packages/world/src/level.ts:697
The vehicle spawners (parking bays), by name; absent when the level has none.
spawns
spawns:
SpawnPoint[]
Defined in: packages/world/src/level.ts:683
Spawn points in order of preference.
water?
optionalwater?:WaterDef[]
Defined in: packages/world/src/level.ts:711
The surfaces of water and lava, by name; absent when the level has none.