DebugChecks beta
Interface of @v12-engine/engine/debug
export interface DebugChecksChecks the engine can run on itself, for tests and development. Each one redoes or re-verifies work that the engine normally skips or caches, and throws as soon as the shortcut gave a different answer. They are slow; a real game leaves them off. A world's are its own (world.checks, CreateWorldOptions.checks); these are what a world that says nothing starts with (setDebugChecks), and what a computer player's brain, which has no world, reads
Members
ai
ai: boolean;Whether every think of every computer player's brain is checked against the invariants of ai/checks.ts
events
events: boolean;Whether replicated events are checked to be plain data that could cross a network
index
index: boolean;Whether World.index is checked every tick against the entities
scenery
scenery: boolean;Whether scenery is checked every tick for having nothing the per-tick systems should see to
sight
sight: boolean;Whether each snapshot's sight is checked against testing every entity of the world
snapshots
snapshots: boolean;Whether what a snapshot tells of an entity again from last time is checked against describing it anew
stats
stats: boolean;Whether statsOf is checked against adding the stats up from scratch