five-on-it / packages/world/src/level / LevelData
Interface: LevelData
Defined in: packages/world/src/level.ts:770
Everything the simulation needs to build a level.
Properties
bascules?
optionalbascules?:BasculeDef[]
Defined in: packages/world/src/level.ts:814
The leaves of its bascule bridges, by name; absent when the level has none.
cameras?
optionalcameras?:CameraDef[]
Defined in: packages/world/src/level.ts:792
The security cameras, by name; absent when the level has none.
containers?
optionalcontainers?:ContainerDef[]
Defined in: packages/world/src/level.ts:790
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:802
The districts, by name; absent when the level has none.
doors?
optionaldoors?:DoorDef[]
Defined in: packages/world/src/level.ts:788
The doors, by name; absent when the level has none.
dummies
dummies:
SpawnPoint[]
Defined in: packages/world/src/level.ts:786
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:808
The escalators, by their stairs' names; absent when the level has none.
garages?
optionalgarages?:GarageDef[]
Defined in: packages/world/src/level.ts:798
The garages, by name; absent when the level has none.
groundHalfSize
groundHalfSize:
number
Defined in: packages/world/src/level.ts:774
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:804
The ladders, by name; absent when the level has none.
lifts?
optionallifts?:LiftDef[]
Defined in: packages/world/src/level.ts:806
The lifts, by name; absent when the level has none.
manholes?
optionalmanholes?:ManholeDef[]
Defined in: packages/world/src/level.ts:812
The manholes into the sewers, by name; absent when the level has none.
meshes
meshes:
Record<string,MeshDef>
Defined in: packages/world/src/level.ts:776
The meshes the placements share, by key.
nailStrips
nailStrips:
NailStripDef[]
Defined in: packages/world/src/level.ts:784
Nail strips that pop the tyres rolling over them.
npcs?
optionalnpcs?:NpcDef[]
Defined in: packages/world/src/level.ts:794
The NPCs its spawners place, by name; absent when the level has none.
placements
placements:
PlacementDef[]
Defined in: packages/world/src/level.ts:778
Every placed mesh, in export order (kind, then name).
roads
roads:
RoadDef[]
Defined in: packages/world/src/level.ts:780
Roads: where the streets are, for the AI drivers and the maps; no collider.
schemaVersion?
optionalschemaVersion?:number
Defined in: packages/world/src/level.ts:772
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:800
The shops' counters, by name; absent when the level has none.
sky?
optionalsky?:LevelSky
Defined in: packages/world/src/level.ts:818
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:796
The vehicle spawners (parking bays), by name; absent when the level has none.
spawns
spawns:
SpawnPoint[]
Defined in: packages/world/src/level.ts:782
Spawn points in order of preference.
substations?
optionalsubstations?:SubstationDef[]
Defined in: packages/world/src/level.ts:816
The substations, by name; absent when the level has none.
water?
optionalwater?:WaterDef[]
Defined in: packages/world/src/level.ts:810
The surfaces of water and lava, by name; absent when the level has none.