StatsCog

TOCK by NullSave\Stats Cog\ScriptsStatsCog.cs

Description

A SaveableObject that tracks stats for the attached GameObject.

Properties

ActiveEffectsReturns a list of all currently applied effects
effectsStores all possible effects, only used for saving and not required
statsStores all stats for the GameObject

Methods

AddEffectAdds a new active StatEffect
ClearEffectsRemoves all active StatEffects
EvaluateConditionEvaluates a logical equation
FindStatReturns a StatValue by name
GetExpressionValueReturns the float result of an equation, including current stat values
LoadLoads data from a stream or file
RemoveEffectRemoves an active StatEffect
RemoveEffectAllRemoves all instances of an active StatEffect
SaveSaves data to a stream of file
SendCommandSends a command for processing