Skip to content

UnlistedError beta ​

Class of @v12-engine/engine

ts
export declare class UnlistedError extends Error

What is thrown for a component or an event of its own that a game uses without listing it (Rules.components, Rules.events): no world finds it by its id, so a save, a snapshot or the index would lose it

Members ​

constructor ​

ts
constructor(
    kind: 'component' | 'event', 
    id: string, 
    game: string);

Constructs a new instance of the UnlistedError class

game ​

ts
readonly game: string;

The id of the game that used it

id ​

ts
readonly id: string;

Its id

kind ​

ts
readonly kind: 'component' | 'event';

What it is: a component or an event