UNPKG

isaac-typescript-definitions

Version:

TypeScript definitions for The Binding of Isaac: Repentance.

37 lines (36 loc) 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EntityPartitionZero = exports.EntityPartition = 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 EntityPartition */ const EntityPartitionInternal = { /** 1 << 0 (1) */ FAMILIAR: 1 << 0, /** 1 << 1 (2) */ BULLET: 1 << 1, /** 1 << 2 (4) */ TEAR: 1 << 2, /** 1 << 3 (8) */ ENEMY: 1 << 3, /** 1 << 4 (16) */ PICKUP: 1 << 4, /** 1 << 5 (32) */ PLAYER: 1 << 5, /** * 1 << 6 (64) * * @deprecated The `Isaac.FindInRadius` method will only work with entities that have collision. * Since effects do not have collision, they will never be returned. Thus, this enum * is useless. */ // eslint-disable-next-line deprecation/deprecation EFFECT: 1 << 6, }; exports.EntityPartition = EntityPartitionInternal; exports.EntityPartitionZero = 0;