undoable beta
Function of @v12-engine/engine
ts
export declare function undoable(world: World, entity: Entity, purchase: Purchase): boolean;Whether a purchase may still be undone (undoBuy): within ShopSettings.undo seconds of it, the buyer alive and at the shop still, the shop standing, the item carried with its charges as bought and its ability not used