Skip to content

Exports, hooks and events ​

See the complete signatures and payloads in the runtime API once the implementation branch is merged.

Export Side Purpose
Ignite(coords, options) server Create a bounded incident
GetIncident(id), GetIncidents() server Read public snapshots; cause is omitted
Extinguish(id, reason), ApplyAgent(...) server Contain an incident or apply suppressant
SetWeather(values) server Update global simulation weather
RegisterFuelClass(id, def), RegisterIgnitionScenario(id, def) server Extend fuel or scenario registries
RegisterStation, RegisterHydrant, RegisterInspectionSite server Register integration-owned locations
ReportVehicleDamage(netId, options) server Adopt a damaged vehicle into fire simulation
ReportAlarm(coords, title, detail, dedupeKey) server Publish a fire-channel alarm
BeginInspection(placeId), CompleteInspection(...) server Read or record an inspection

Server events include np_fire:server:stationAlarm(stationId, detail) and fallback np_fire:dispatchFallback(alert). These are integration hooks, not client APIs. Clients receive incidentSync snapshots on join and incidentDelta updates as simulation state changes.