Events
Predefined Game Economy Events
Track in-game currency earn and spend transactions.
Game economy events track in-game currency transactions, ensuring a clear, structured record of how players earn and spend resources. Call these from the correct locations within the game to maintain accurate analytics.
Usage example
Hammer.Instance.ANALYTICS_GameEconomyEvents.Earned_Soft_Currency(12, "gold", "levelComplete");
Hammer.Instance.ANALYTICS_GameEconomyEvents.Spent_Soft_Currency(15, "gold", "unlockCostume3");Parameter definitions
| Parameter | Type | Description |
|---|---|---|
amount | int | The amount of currency earned or spent. |
type | string | The type of currency (e.g. "gold", "gems"). |
where | string | The location or reason for the transaction (e.g. "characterOutfitPurchase", "levelCompletePrize"). |