Class UiSaveStats
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
Answers the character-creation screen's "have you ever reached X?" questions.
The UI used to reach into CS.GrindFest.SaveData.Current.TotalStatistics.<dictionary> and
read a Dictionary key by key. OneJS v3's CS proxy resolves that kind of chained static member access
badly: every lookup logged
[QuickJS] Type not found: GrindFest.SaveData.Current.TotalStatistics.<member>, and the
dev-test harness fails any test that logs an error - so the whole character-creation screen could not
be verified at all. A plain static method call on a type is the shape the proxy handles well, so the
questions are answered here instead.
Every method answers -1 when nothing is recorded. That is the honest equivalent of the JS
tryGet(...).ok == false it replaces, and it cannot be mistaken for a satisfied requirement
whose target happens to be 0.
public static class UiSaveStats
- Inheritance
-
objectUiSaveStats
Methods
- HasManaRecorded()
Whether any mana has ever been recorded (the Mana class requirement).