A static class in Root.Township, Alta.Customization.
Static cache of the logged-in player's Talem (shop currency) balance, fetched from the Alta shop API.
Properties
| Member | What it is |
|---|
static int CurrentBalance { get; private set; } | Last fetched balance. 0 until RequestUpdate succeeds. |
Events
| Member | What it is |
|---|
static event Action<int> OnBalanceChanged | Raised with the new balance when RequestUpdate finds it changed. |
Methods
| Member | What it is |
|---|
static async Task<int> RequestUpdate() | Fetches the shop account info from the API, stores the shard balance and returns it. |