Skip to main content

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.

"Stats Database V2"

Fields#

NameDescription
PersistMark this object as DontDestroyOnLoad
Design Time ResourcePath to resource with Stats Data used at design time
Use Same At RuntimeUse the same resource at runtime
Data SourceSets where to load the data from
Bundle NameName of the AssetBundle to load from
Asset NameName of the Asset in the AssetBundle to load
PathRelative path to asset in Resources
Load On AwakeLoad data on awake

Properties#

NameDescription
attributesList of all Attributes
backgroundsList of all Backgrounds
classesList of all Classes
effectsList of all Status Effects
eventsList of all Events
focusesList of all Focuses
languagesList of all Languages
perksList of all Perks
racesList of all Races
resistancesList of all Status Effect Resistances
statusConditionsList of all Status Conditions
levelRewardsList of all Level Rewards
customRewardsList of all Custom Rewards
settingsDatabase settings
instanceReturns a reference to the current instance
isLoadedTrue if the database has been loaded

Methods#

NameDescription
GetActionSequenceGet an Action Sequence by Id
GetAttributeGet an Attribute by Id
GetBackgroundGet a Background by Id
GetClassGet a Class by Id
GetEffectGet a Status Effect by Id
GetEffectResistanceGet a Status Effect Resistance by Id
GetFirstSubRaceGet the first child of a race (if any)
GetFocusGet a Focus by Id
GetEventGet a Stat Event by Id
GetLanguageGet a Language by Id
GetPerkGet a Perk by Id
GetRaceGet a Race by Id
GetRaceUninitializedGet a Race by Id (without getting parent values)
GetStatusConditionGet a Status Condition by Id
GetTopRaceGet the top level of a race
LoadLoad data from source
UnloadUnload database