Skip to content

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? ​

optional bascules?: BasculeDef[]

Defined in: packages/world/src/level.ts:814

The leaves of its bascule bridges, by name; absent when the level has none.


cameras? ​

optional cameras?: CameraDef[]

Defined in: packages/world/src/level.ts:792

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


containers? ​

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

optional districts?: DistrictDef[]

Defined in: packages/world/src/level.ts:802

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


doors? ​

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

optional escalators?: EscalatorDef[]

Defined in: packages/world/src/level.ts:808

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


garages? ​

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

optional ladders?: LadderDef[]

Defined in: packages/world/src/level.ts:804

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


lifts? ​

optional lifts?: LiftDef[]

Defined in: packages/world/src/level.ts:806

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


manholes? ​

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

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

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

optional shops?: ShopDef[]

Defined in: packages/world/src/level.ts:800

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


sky? ​

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

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

optional substations?: SubstationDef[]

Defined in: packages/world/src/level.ts:816

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


water? ​

optional water?: WaterDef[]

Defined in: packages/world/src/level.ts:810

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