Introduction
The Stats Database component provides a list of all objects that can be used by various Stat Sources. This way they can be reused and quickly updated by AssetBundles or Json updates.

Fields#
| Name | Description |
|---|---|
| Persist | Mark this object as DontDestroyOnLoad |
| Design Time Resource | Path to resource with Stats Data used at design time |
| Use Same At Runtime | Use the same resource at runtime |
| Data Source | Sets where to load the data from |
| Bundle Name | Name of the AssetBundle to load from |
| Asset Name | Name of the Asset in the AssetBundle to load |
| Path | Relative path to asset in Resources |
| Load On Awake | Load data on awake |
Properties#
| Name | Description |
|---|---|
| attributes | List of all Attributes |
| backgrounds | List of all Backgrounds |
| classes | List of all Classes |
| effects | List of all Status Effects |
| events | List of all Events |
| focuses | List of all Focuses |
| languages | List of all Languages |
| perks | List of all Perks |
| races | List of all Races |
| resistances | List of all Status Effect Resistances |
| statusConditions | List of all Status Conditions |
| levelRewards | List of all Level Rewards |
| customRewards | List of all Custom Rewards |
| settings | Database settings |
| instance | Returns a reference to the current instance |
| isLoaded | True if the database has been loaded |
Methods#
| Name | Description |
|---|---|
| GetActionSequence | Get an Action Sequence by Id |
| GetAttribute | Get an Attribute by Id |
| GetBackground | Get a Background by Id |
| GetClass | Get a Class by Id |
| GetEffect | Get a Status Effect by Id |
| GetEffectResistance | Get a Status Effect Resistance by Id |
| GetFirstSubRace | Get the first child of a race (if any) |
| GetFocus | Get a Focus by Id |
| GetEvent | Get a Stat Event by Id |
| GetLanguage | Get a Language by Id |
| GetPerk | Get a Perk by Id |
| GetRace | Get a Race by Id |
| GetRaceUninitialized | Get a Race by Id (without getting parent values) |
| GetStatusCondition | Get a Status Condition by Id |
| GetTopRace | Get the top level of a race |
| Load | Load data from source |
| Unload | Unload database |