Skip to content

Kiln API / kiln / stateHash

Function: stateHash() ​

ts
function stateHash(app, precision?): string;

Hash of the simulation state: every entity's JSON trait values plus the Rng, rounded.

Parameters ​

ParameterTypeDefault value
appAppundefined
precisionnumber5

Returns ​

string