Skip to content

DebugChecks beta ​

Interface of @v12-engine/engine/debug

ts
export interface DebugChecks

Checks 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 ​

ts
ai: boolean;

Whether every think of every computer player's brain is checked against the invariants of ai/checks.ts

events ​

ts
events: boolean;

Whether replicated events are checked to be plain data that could cross a network

index ​

ts
index: boolean;

Whether World.index is checked every tick against the entities

scenery ​

ts
scenery: boolean;

Whether scenery is checked every tick for having nothing the per-tick systems should see to

sight ​

ts
sight: boolean;

Whether each snapshot's sight is checked against testing every entity of the world

snapshots ​

ts
snapshots: boolean;

Whether what a snapshot tells of an entity again from last time is checked against describing it anew

stats ​

ts
stats: boolean;

Whether statsOf is checked against adding the stats up from scratch