Skip to content

ErrorAnswer beta ​

TypeAlias of @v12-engine/engine

ts
export type ErrorAnswer = 'throw' | 'end' | 'disable';
  • throw: the error goes on to whoever stepped the world. Nothing is hidden: for tests and development - end: the game ends there, with the reason kept (world.failure) and told to the players. The world is not stepped again. What a server and a launched game do when nothing is said: one game ends, and nothing else does - disable: the part that threw is switched off and the game goes on without it: the handler, the listener, the system or the timer no longer runs; the order is taken off its unit, the command refused. Never done unasked: a rule that is quietly gone is a game that goes quietly wrong