Log inGet started
World

Painted Metropolis

Branchmain
Commit1e1d3a3d4d

README.md

reports

Reports on their way: a witness walking to a call box, a camera holding its view.

An observer whose kind answers an alert with a report does not raise heat at once. It opens a pending report
that lands after a delay, and can be cancelled before it does (the relay was jammed, the witness lost interest,
the camera was blinded). That delay is the player's window, so it is explicit and observable:

  local Reports = require("~.modules.reports")
  local rp = Reports.new()
  rp:open("cit7", { delay = 4, via = "relay", offence = "reported", x = 10, z = -4, relay = "box3" })
  rp:hold("cit7", true)        -- pause it (the witness has not reached the relay yet); hold(id, false) resumes
  rp:cancel("cit7")            -- returns true if there was one
  rp:cancelRelay("box3")       -- every report going through that relay; returns how many
  local landed = rp:tick(dt)   -- { { id, offence, x, z, via, relay } } that arrived this tick
  rp:pending()                 -- { { id, left, delay, via, relay, held } } soonest first, for the HUD

The interface is documented in the header of init.luau; this file repeats it for the asset browser.