five-on-it / apps/client/src/renderer/police-heavy / FlagEdges
Class: FlagEdges
Defined in: apps/client/src/renderer/police-heavy.ts:80
Watches one flag of the vehicles from snapshot to snapshot: which turned on or off since the last. A vehicle seen for the first time turns nothing (it came into view so), and one no longer listed is forgotten.
Constructors
Constructor
new FlagEdges(
flag):FlagEdges
Defined in: apps/client/src/renderer/police-heavy.ts:85
Watches the flag flag reads of a vehicle.
Parameters
flag
(e) => boolean
Returns
FlagEdges
Methods
changes()
changes(
entities):FlagEdge[]
Defined in: apps/client/src/renderer/police-heavy.ts:90
The vehicles of entities whose flag changed since the last call.
Parameters
entities
readonly EntitySnapshot[]
Returns
FlagEdge[]