Skip to main content

CurrentTalemBalance

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​

MemberWhat it is
static int CurrentBalance { get; private set; }Last fetched balance. 0 until RequestUpdate succeeds.

Events​

MemberWhat it is
static event Action<int> OnBalanceChangedRaised with the new balance when RequestUpdate finds it changed.

Methods​

MemberWhat it is
static async Task<int> RequestUpdate()Fetches the shop account info from the API, stores the shard balance and returns it.