Skip to content

resourcesSpent beta ​

Variable of @v12-engine/engine

ts
resourcesSpent: import("./events").EventKey<{
    player: import("./entity").PlayerId;
    cost: import("./defs").Cost;
    on: import("./player").SpentOn;
    id?: string;
    refund: boolean;
}>

A player paid for something (spend), or was given back what they paid (refund, giveBack): on what (unit, upgrade, structure, item, hire, repair... or a game's own word), and its id