isaacscript-common
Version:
Helper functions and features for IsaacScript mods.
14 lines • 642 B
TypeScript
import { SlotVariant } from "isaac-typescript-definitions";
/**
* Helper function to get the name of a slot, as listed in the "entities2.xml" file. Returns
* "Unknown" if the provided slot variant is not valid.
*
* This function only works for vanilla slot variants.
*
* For example, `getSlotName(SlotVariant.BLOOD_DONATION_MACHINE)` would return "Blood Donation
* Machine".
*/
export declare function getSlotName(slotVariant: SlotVariant): string;
/** Returns true for the specific variants of `EntityType.SLOT` that are machines. */
export declare function isSlotMachine(entity: Entity): boolean;
//# sourceMappingURL=slots.d.ts.map