Skip to main content

Introduction

This class provides a source for stats on items. It uses with GDTKItemStats or (if installed) GDTK: Stats

Fields#

NameDescription
On Weight ChangedEvent raised when the value of the weight stat changes

Properties#

NameDescription
initializedGets if this object has been initialized
initializedForInventory used to initialize this item
instanceIdGet the id of this instance of the object
advancedStatsGets the GDTK Stat Source for this object (Requires GDTK: Stats)
statIdsGet a list of stat ids

Methods#

NameDescription
AddStatAdd a new stat
AddStatValueAdd to the value of a stat
AddContributingStatAdd an external contributing stat
CloneCreate a clone of this object
CopyValuesCopy stats from another object to this one
DataLoadLoad data from a stream
DataSaveSave data to a stream
GetStatGet a stat by id
SetStatExpressionSet the expression of a stat
GenerateSubscriptionsGenerate subscriptions for an expression
GetStatValueGet the value of a stat
GetValueGet the value of an expression
InheritInherit values from parent
InitializeInitialize the object
InitializeFromOwnerInitialize the object
IsTrueCheck if an expression is true
MatchesCompare object to another copy
RemoveContributingStatRemove an external contributing stat
SetStatValueSet the value of a stat by id
ShutdownShutdown the object