Skip to content

five-on-it / packages/world/src

packages/world/src ​

Level data for the simulation and the renderer: meshes and their placements, the ground queries both sides share, the naming convention of the levels, the runtime schema of a level file, the pieces that map a Babylon.js Editor scene onto level data and back, and the road graph, its junctions and traffic signals and the navigation grid the AI moves on, the checks a level passes before it is played (lint, budgets, reachability) and the audit of its geometry with the repair a generation makes (audit/). The registry of the bundled levels is the separate entry @foi/world/levels. Isomorphic: no DOM, no Node.

References ​

activeOverride ​

Re-exports activeOverride


approachGroup ​

Re-exports approachGroup


AUDIT_RULES ​

Re-exports AUDIT_RULES


AuditDrop ​

Re-exports AuditDrop


auditLevel ​

Re-exports auditLevel


AuditRule ​

Re-exports AuditRule


axisGroup ​

Re-exports axisGroup


BLOCK_COLORS ​

Re-exports BLOCK_COLORS


BLOCK_KINDS ​

Re-exports BLOCK_KINDS


BLOCK_LIBRARY_NODE ​

Re-exports BLOCK_LIBRARY_NODE


BLOCK_MESHES ​

Re-exports BLOCK_MESHES


BLOCK_PARAMS ​

Re-exports BLOCK_PARAMS


BLOCK_SCRIPT_KEYS ​

Re-exports BLOCK_SCRIPT_KEYS


BLOCK_SOURCE_NAMES ​

Re-exports BLOCK_SOURCE_NAMES


BlockError ​

Re-exports BlockError


BlockKind ​

Re-exports BlockKind


blockKindOfScript ​

Re-exports blockKindOfScript


blockKindOfSource ​

Re-exports blockKindOfSource


BlockParam ​

Re-exports BlockParam


buildNavGrid ​

Re-exports buildNavGrid


buildNavLayers ​

Re-exports buildNavLayers


buildPavements ​

Re-exports buildPavements


buildRoadGraph ​

Re-exports buildRoadGraph


buildSignals ​

Re-exports buildSignals


CameraDef ​

Re-exports CameraDef


canonicalYaw ​

Re-exports canonicalYaw


checkLevel ​

Re-exports checkLevel


ColliderShape ​

Re-exports ColliderShape


compareNatural ​

Re-exports compareNatural


coplanarOverlaps ​

Re-exports coplanarOverlaps


createGroundProbe ​

Re-exports createGroundProbe


DEFAULT_MAIN_LEVEL ​

Re-exports DEFAULT_MAIN_LEVEL


defaultLevelName ​

Re-exports defaultLevelName


DISTRICT_TITLE_PATTERN ​

Re-exports DISTRICT_TITLE_PATTERN


DistrictArea ​

Re-exports DistrictArea


districtTitle ​

Re-exports districtTitle


Door ​

Re-exports Door


DoorDef ​

Re-exports DoorDef


DroppedPiece ​

Re-exports DroppedPiece


EscalatorDef ​

Re-exports EscalatorDef


findJunctions ​

Re-exports findJunctions


findPlacement ​

Re-exports findPlacement


Re-exports forEachLink


forEachNodeOf ​

Re-exports forEachNodeOf


formatItemList ​

Re-exports formatItemList


formatPatrol ​

Re-exports formatPatrol


formatSchedule ​

Re-exports formatSchedule


formatWeights ​

Re-exports formatWeights


garageAt ​

Re-exports garageAt


GarageDef ​

Re-exports GarageDef


groundAt ​

Re-exports groundAt


groundProbe ​

Re-exports groundProbe


GroundProbe ​

Re-exports GroundProbe


groundSlope ​

Re-exports groundSlope


inDistrict ​

Re-exports inDistrict


inGarage ​

Re-exports inGarage


insideSolid ​

Re-exports insideSolid


isLampHeadColor ​

Re-exports isLampHeadColor


isLampMesh ​

Re-exports isLampMesh


isLooseColor ​

Re-exports isLooseColor


isNatural ​

Re-exports isNatural


isOpenGround ​

Re-exports isOpenGround


isPaint ​

Re-exports isPaint


isTrafficLight ​

Re-exports isTrafficLight


isValidLevelName ​

Re-exports isValidLevelName


ITEM_ID_PATTERN ​

Re-exports ITEM_ID_PATTERN


Junction ​

Re-exports Junction


KIT_LIBRARY_NODE ​

Re-exports KIT_LIBRARY_NODE


LadderDef ​

Re-exports LadderDef


LAMP ​

Re-exports LAMP


lampHead ​

Re-exports lampHead


lampLightAt ​

Re-exports lampLightAt


lampsOf ​

Re-exports lampsOf


laneCentre ​

Re-exports laneCentre


laneOffset ​

Re-exports laneOffset


laneSpot ​

Re-exports laneSpot


LAVA_COLOR ​

Re-exports LAVA_COLOR


LAYER_STEP ​

Re-exports LAYER_STEP


Level ​

Re-exports Level


LEVEL_BUDGET ​

Re-exports LEVEL_BUDGET


LEVEL_NAME_PATTERN ​

Re-exports LEVEL_NAME_PATTERN


LEVEL_NAME_RULE ​

Re-exports LEVEL_NAME_RULE


LEVEL_SCHEMA_VERSION ​

Re-exports LEVEL_SCHEMA_VERSION


LEVEL_STEPS ​

Re-exports LEVEL_STEPS


LevelData ​

Re-exports LevelData


LevelDataSchema ​

Re-exports LevelDataSchema


levelGeometry ​

Re-exports levelGeometry


levelKindOf ​

Re-exports levelKindOf


LevelSky ​

Re-exports LevelSky


levelSpots ​

Re-exports levelSpots


levelToPlacements ​

Re-exports levelToPlacements


LiftDef ​

Re-exports LiftDef


lineClear ​

Re-exports lineClear


lintLevel ​

Re-exports lintLevel


meshBounds ​

Re-exports meshBounds


MeshDef ​

Re-exports MeshDef


MeshGroup ​

Re-exports MeshGroup


meshTriangles ​

Re-exports meshTriangles


migrateLevel ​

Re-exports migrateLevel


NailStripDef ​

Re-exports NailStripDef


Re-exports NAV_BLOCKED


Re-exports NAV_NEAR_WALL


Re-exports NAV_ROAD


Re-exports NAV_SLOPE


Re-exports navCell


Re-exports navCentre


Re-exports navFlags


Re-exports NavGrid


Re-exports NavLayers


Re-exports navNode


nearestPavementNode ​

Re-exports nearestPavementNode


nearestRoadPoint ​

Re-exports nearestRoadPoint


nearestScent ​

Re-exports nearestScent


nearestSignal ​

Re-exports nearestSignal


nearRoad ​

Re-exports nearRoad


nextPavementNode ​

Re-exports nextPavementNode


nodeCell ​

Re-exports nodeCell


nodeFlags ​

Re-exports nodeFlags


nodeHeight ​

Re-exports nodeHeight


nodePoint ​

Re-exports nodePoint


NpcDef ​

Re-exports NpcDef


NpcRole ​

Re-exports NpcRole


onBasePlane ​

Re-exports onBasePlane


PaintTriangle ​

Re-exports PaintTriangle


parsePatrol ​

Re-exports parsePatrol


parseSchedule ​

Re-exports parseSchedule


parseWeights ​

Re-exports parseWeights


PAVEMENT ​

Re-exports PAVEMENT


pavementDistances ​

Re-exports pavementDistances


Re-exports PavementLink


PavementNode ​

Re-exports PavementNode


Pavements ​

Re-exports Pavements


pavementsOf ​

Re-exports pavementsOf


PIECE_KINDS ​

Re-exports PIECE_KINDS


PieceDef ​

Re-exports PieceDef


PieceFacts ​

Re-exports PieceFacts


PieceKind ​

Re-exports PieceKind


PieceLibrary ​

Re-exports PieceLibrary


PiecePlacement ​

Re-exports PiecePlacement


PieceRests ​

Re-exports PieceRests


PieceRoad ​

Re-exports PieceRoad


PlacementDef ​

Re-exports PlacementDef


placementsToLevel ​

Re-exports placementsToLevel


placementVertices ​

Re-exports placementVertices


placePoint ​

Re-exports placePoint


quadsOverPaint ​

Re-exports quadsOverPaint


repairLevel ​

Re-exports repairLevel


ROAD_KINDS ​

Re-exports ROAD_KINDS


roadAxes ​

Re-exports roadAxes


RoadDef ​

Re-exports RoadDef


RoadEdge ​

Re-exports RoadEdge


RoadGraph ​

Re-exports RoadGraph


RoadKind ​

Re-exports RoadKind


roadLength ​

Re-exports roadLength


RoadNode ​

Re-exports RoadNode


roadPaint ​

Re-exports roadPaint


roadPointAt ​

Re-exports roadPointAt


roadRoute ​

Re-exports roadRoute


RoadSurface ​

Re-exports RoadSurface


SCHEDULE_ACTIVITIES ​

Re-exports SCHEDULE_ACTIVITIES


SCHEDULE_TIMING ​

Re-exports SCHEDULE_TIMING


ScheduleActivity ​

Re-exports ScheduleActivity


scheduleTimingError ​

Re-exports scheduleTimingError


sharedArea ​

Re-exports sharedArea


ShopDef ​

Re-exports ShopDef


SIGNAL_CYCLE ​

Re-exports SIGNAL_CYCLE


SIGNAL_REACH ​

Re-exports SIGNAL_REACH


SIGNAL_TIMING ​

Re-exports SIGNAL_TIMING


SignalAxis ​

Re-exports SignalAxis


signalColour ​

Re-exports signalColour


SignalColour ​

Re-exports SignalColour


signalFlashing ​

Re-exports signalFlashing


signalHead ​

Re-exports signalHead


SignalLight ​

Re-exports SignalLight


SignalOverride ​

Re-exports SignalOverride


Signals ​

Re-exports Signals


SignalState ​

Re-exports SignalState


SPAWN_ROLES ​

Re-exports SPAWN_ROLES


spawnerKey ​

Re-exports spawnerKey


SpawnPoint ​

Re-exports SpawnPoint


spawnReach ​

Re-exports spawnReach


SpawnRole ​

Re-exports SpawnRole


spawnsOf ​

Re-exports spawnsOf


Spot ​

Re-exports Spot


SPOT_PIECES ​

Re-exports SPOT_PIECES


SpotKind ​

Re-exports SpotKind


STAIRS_SLOPE_MESH ​

Re-exports STAIRS_SLOPE_MESH


STEP_HEIGHT ​

Re-exports STEP_HEIGHT


supportAt ​

Re-exports supportAt


supportHeight ​

Re-exports supportHeight


surfaceHeight ​

Re-exports surfaceHeight


TAG_PATTERN ​

Re-exports TAG_PATTERN


underWater ​

Re-exports underWater


VehicleSpawnerDef ​

Re-exports VehicleSpawnerDef


WADE_DEPTH ​

Re-exports WADE_DEPTH


waterAt ​

Re-exports waterAt


WaterDef ​

Re-exports WaterDef