Lightweight counters exposed by [CraftingService] for HUDs, telemetry, and QA dashboards. The service increments these automatically; games can read them directly or pipe them into their telemetry layer. [method snapshot] returns a stable, zero-filled dictionary containing every public event constant, so telemetry consumers get a predictable schema.
Source: addons/item_vault/crafting/services/crafting_metrics.gd
Syntax
class CraftingMetrics extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
EVENT_SUCCESS | Field | |
EVENT_INVALID_RECIPE | Field | |
EVENT_INVALID_QUANTITY | Field | |
EVENT_MISSING_INVENTORY | Field | |
EVENT_INVALID_INVENTORY | Field | |
EVENT_ITEM_DEFINITION_UNAVAILABLE | Field | |
EVENT_MISSING_INGREDIENT | Field | |
EVENT_INSUFFICIENT_QUANTITY | Field | |
EVENT_OUTPUT_CAPACITY_UNAVAILABLE | Field | |
EVENT_TRANSACTION_REJECTED | Field | |
EVENT_TRANSACTION_ROLLBACK | Field | |
EVENT_STALE_STATE | Field | |
EVENT_DUPLICATE_REQUEST | Field | |
EVENT_UNKNOWN | Field | |
record | Method | |
count | Method | |
total | Method | |
snapshot | Method | |
reset | Method |