UNPKG

isaac-typescript-definitions

Version:

TypeScript definitions for The Binding of Isaac: Repentance.

30 lines (29 loc) 793 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ActionTriggerZero = exports.ActionTrigger = void 0; /** * This is represented as an object instead of an enum due to limitations with TypeScript enums. (We * want this type to be a child of the `BitFlag` type.) * * @enum * @notExported * @rename ActionTrigger */ const ActionTriggerInternal = { /** 1 << -1 (0) */ NONE: 1 << -1, /** 1 << 0 (1) */ BOMB_PLACED: 1 << 0, /** 1 << 1 (2) */ MOVED: 1 << 1, /** 1 << 2 (4) */ SHOOTING: 1 << 2, /** 1 << 3 (8) */ CARD_PILL_USED: 1 << 3, /** 1 << 4 (16) */ ITEM_ACTIVATED: 1 << 4, /** 1 << 5 (32) */ ITEMS_DROPPED: 1 << 5, }; exports.ActionTrigger = ActionTriggerInternal; exports.ActionTriggerZero = 0;