Documentation / @debuffjp/core / InspectRegistry
Class: InspectRegistry
Defined in: inspect.ts:7
Named providers of JSON-serialisable snapshots, on game.inspect. Dev tools and scenarios read them (__DEBUFF_DEV__.state().plugins). Providers only run when something asks, never per frame.
Constructors
Constructor
new InspectRegistry():
InspectRegistry
Returns
InspectRegistry
Methods
register()
register(
name,provider):Unsubscribe
Defined in: inspect.ts:10
Parameters
name
string
provider
() => unknown
Returns
snapshot()
snapshot():
Record<string,unknown>
Defined in: inspect.ts:19
Call every provider. A failing provider reports { error } instead of breaking the snapshot.
Returns
Record<string, unknown>