Integrations ​
All sibling integrations are optional and guarded by resource state and export calls.
| Resource | Contract |
|---|---|
| np_jobs | Attaches the utility feature pack at API 1; every player action checks hasFeature(src, id) server-side |
| np_faction | Department account balances, debits, credits and transfers; account purposes must already exist |
| np_admin | Staff permission nodes, settings and refresh action; np_admin/lib/np_admin.lua is vendored |
| np_environmental | Applies scene effects and converts reported 311 scenes into work orders. Current template ids have fallback mappings; templates can override with meta.utility |
| np_dispatch | Registers the utilities channel and work-order type; subscribes to phone.311 calls and closes mapped calls when orders finish |
| np_phone | Registers the City Services app and RPCs for reports, orders, claims and completion |
| np_prophandler | Registers closure barriers. Its job-name filter is not used; authorization remains in np_jobs |
| np_minigames | Starts the server skillcheck game for asset repairs; timed server fallback is used when unavailable |
| np_cellnet | Maps district power to tower mains power through setTowerPower, preserving cellnet backup batteries |
| np_inventory | Optional item checks/consumption for configured repairs |
| np_fire | Can query getHydrantState; the fire resource must adopt that export to use the flow in hose calculations |
np_jobs now provides the feature resolver and server exports used by feature registration and player gates. Utilities
still needs to attach its pack and register each feature before those gates can resolve; see np_jobs API & exports.
np_dispatch and np_cellnet expose runtime APIs in their current checkouts.
Environmental scenes ​
np_utilities listens to server-local np_environmental:spawned, np_environmental:reported and
np_environmental:cleared events. Scene defaults cover fallen trees, burst mains, dead lights, power lines, rockslides,
sinkholes, wrecks and floods. A template may specify meta.utility = { effect, kind, assetId, radius, priority } to
override the mapping. Reported 311 scenes open a durable utility work order; clearing the scene removes its road closure
and resolves its linked asset/order when one exists.
Dispatch and 311 ​
np_utilities registers alert type utility.work_order on channel utilities. Existing phone.311 calls are also
routed to Public Works. Direct /311 and City Services reports create durable orders immediately; dispatch failure
does not discard the report.