GameStat.cs
v4.0
// View GameStat.cs for all the methods (There are more!!)
// Get the parent Stat (Scriptable Object)
Stat parentOfThisGameStat = gameStat.Parent;
// Get the GameStatList that is holding this Stat
GameStatList parentList = gameStat.ParentList;
// Get the IHaveStats owner who owns the ParentList
IHaveStats thisStatsOwner = gameStat.Owner;
// Access the Dictionaries on this GameStat
// This is useful when you want to access the values that may change at runtime
Dictionaries gameStatDictionaries = gameStat.dictionaries;
// Access the Dictionaries on the Stat (Scriptable Object) of this GameStat
// This is useful when you want to access the fixed values
Dictionaries statDictionaries = gameStat.Parent.dictionaries;
// Get the name of this GameStat & type of this GameStat
var name = gameStat.objectName;
var type = gameStat.objectType;
// Get the values from this GameStat
var points = gameStat.Points;
var finalValue = gameStat.FinalValue;
var finalProficiency = gameStat.FinalProficiency;
var finalStat = gameStat.FinalStat
// Get the current Mastery Level
var masteryLevel = gameStat.MasteryLevel
var masteryLevelName = gameStat.MasteryLevelNameCreating a GameStat
Automation
Get the Final Stat
Modifying Points (Stat as a Counter)
Last updated