Skip to main content

Decorators

If you decide to structure your mod as a set of feature classes, you can use decorators to automatically register callbacks.

Currently, there are two decorators:

  • @Callback
  • @CallbackCustom

For example:

export class MyFeature extends ModFeature {
@Callback(ModCallback.POST_GAME_STARTED)
postGameStarted(isContinued: boolean): void {
Isaac.DebugString(`Callback fired: POST_GAME_STARTED`);
}
}