Skip to main content

ProjectVHeaderSnapshot class

Everything the top-bar header shows: currency balances and stamina. Read-only; every change arrives as a new snapshot.

Namespace: SilverTiger.ProjectV.Unity.Presentation.Header

public sealed class ProjectVHeaderSnapshot

Properties​

PropertyTypeDescription
RevisionlongGrows with every update. A snapshot with a lower revision is older. Not needed in UI.
CurrenciesIReadOnlyList<ProjectVHeaderCurrencyValue>One balance per catalog binding, in catalog order. Empty until HasEconomy is true.
Staminalong?The stamina the server last reported; null until HasStamina is true. For a live value with a countdown, use StaminaRecovery.
HasEconomyboolTrue once the wallet balances are loaded and Currencies can be shown.
HasStaminaboolTrue once the stamina state is loaded.
StaminaRecoveryProjectVStaminaRecovery?Live stamina with its recovery countdown; call ProjectVStaminaRecovery.Read each frame or second. Null until the stamina state is known.
IsReadyboolTrue when both currencies and stamina are loaded, so the whole header can be shown.