Skip to content

five-on-it / packages/ai/src/system / hashAiState

Function: hashAiState() ​

hashAiState(ai): string

Defined in: packages/ai/src/system.ts:605

A hash of every NPC's state, of the police's book, of the traffic's, of the crowd's and of the book of stealth, for the determinism gate: two worlds in step hash the same.

Parameters ​

ai ​

AiWorld

Returns ​

string