feat: export beacon state snapshots for #166
This commit is contained in:
@@ -230,6 +230,10 @@ function tick() {
|
||||
G.lastEventAt = G.tick;
|
||||
}
|
||||
|
||||
if (typeof StateExport !== 'undefined' && StateExport && typeof StateExport.onTickBoundary === 'function') {
|
||||
StateExport.onTickBoundary(G);
|
||||
}
|
||||
|
||||
// Emergent mechanics: track resource state and check for emergent events
|
||||
if (typeof EmergentMechanics !== 'undefined' && window._emergent) {
|
||||
if (Math.floor(G.tick * 10) % 100 === 0) { // every ~10 seconds
|
||||
|
||||
Reference in New Issue
Block a user