Skip to content

five-on-it / packages/ai/src/chaos / ChaosHooks

Interface: ChaosHooks ​

Defined in: packages/ai/src/chaos.ts:147

What the Smart City's systems (a later phase's) plug into the chaos events.

Methods ​

disguised() ​

disguised(sim, eid): boolean

Defined in: packages/ai/src/chaos.ts:149

Whether a player wears a disguise the billboards' faces do not match: no face shown, nobody recognises them.

Parameters ​

sim ​

SimWorld

eid ​

number

Returns ​

boolean


report() ​

report(ai, culprit, at): void

Defined in: packages/ai/src/chaos.ts:151

A pedestrian's report of a wanted player it recognised (the citizen app); by default the witness's call.

Parameters ​

ai ​

AiWorld

culprit ​

number

at ​
x ​

number

z ​

number

Returns ​

void