UNPKG

prendy

Version:

Make games with prerendered backdrops using babylonjs and repond

9 lines (7 loc) 255 B
import { getState } from "repond"; import { PickupName } from "../../types"; // TODO move to utils/getters export function isHolding(pickupName: PickupName) { const { heldPickups } = getState().global.main; return heldPickups.includes(pickupName); }