Class StatManager
Track of all runtime stats data and exposes methods for managing the data at runtime.
Namespace: UnityEngine.GameFoundation
Assembly: solution.dll
Syntax
public static class StatManager
Properties
| Name | Description |
|---|---|
| IsInitialized | Returns the current initialization state of the StatManager. |
| catalog | This is the StatCatalog the StatManager uses. |
Methods
| Name | Description |
|---|---|
| GetFloatValue(GameItem, int) | Get's the value of the specified Stat on specified GameItem. |
| GetFloatValue(GameItem, string) | Get's the value of the specified Stat on specified GameItem. |
| GetIntValue(GameItem, int) | Get's the value of the specified Stat on specified GameItem. |
| GetIntValue(GameItem, string) | Get's the value of the specified Stat on specified GameItem. |
| HasFloatValue(GameItem, int) | Checks if the specified Stat has been set for specified GameItem. |
| HasFloatValue(GameItem, string) | Checks if the specified Stat has been set for specified GameItem. |
| HasIntValue(GameItem, int) | Checks if the specified Stat has been set for specified GameItem. |
| HasIntValue(GameItem, string) | Checks if the specified Stat has been set for specified GameItem. |
| RemoveFloatValue(GameItem, int) | Remove specified Stat from specified GameItem. |
| RemoveFloatValue(GameItem, string) | Remove specified Stat from specified GameItem. |
| RemoveIntValue(GameItem, int) | Remove specified Stat from specified GameItem. |
| RemoveIntValue(GameItem, string) | Remove specified Stat from specified GameItem. |
| Reset() | Can be called after Initialize() as many times as needed. Will reset everything to be as it was after Initialize() was called. |
| ResetToDefaultFloatValue(GameItem, int) | Reset Stat to the correct default value. |
| ResetToDefaultFloatValue(GameItem, string) | Reset Stat to the correct default value. |
| ResetToDefaultIntValue(GameItem, int) | Reset Stat to the correct default value. |
| ResetToDefaultIntValue(GameItem, string) | Reset Stat to the correct default value. |
| SetFloatValue(GameItem, int, float) | Sets specified Stat on specified gameItem to a specific value. |
| SetFloatValue(GameItem, string, float) | Sets specified Stat on specified gameItem to a specific value. |
| SetIntValue(GameItem, int, int) | Sets specified Stat on specified gameItem to a specific value. |
| SetIntValue(GameItem, string, int) | Sets specified Stat on specified gameItem to a specific value. |
| TryGetFloatValue(GameItem, int, out float) | Tries to get specified Stat for specified GameItem and set out variable, if found. |
| TryGetFloatValue(GameItem, string, out float) | Tries to get specified Stat for specified GameItem and set out variable, if found. |
| TryGetIntValue(GameItem, int, out int) | Tries to get specified Stat for specified GameItem and set out variable, if found. |
| TryGetIntValue(GameItem, string, out int) | Tries to get specified Stat for specified GameItem and set out variable, if found. |