Skip to main content

Introduction

This class allows an Inventory Item to be defined

"GDTK Item"

Fields#

NameDescription
Category IdCategory of the item
WeightWeight of the item
ValueValue of the item
RarityRarity of the item
Premium ItemMake item only unlockable with premium currency
Premium IdPremium currency used to purchase item
Premimum CostCost of item in premium currency
Parent ContainerContainer holding the item
On Count ChangedEvent raised when count changes
On InitializedEvent raised when item is initialized
On Equip State ChangedEvent raised when equip state changes
On Display Name ChangedEvent raised when the display name changes
On Weight ChangedEvent raised when item weight changes
On Stats ChangedEvent raised when stats changes
ContainerContainer for items housed by this item

Properties#

NameDescription
countGet/Set the current count of the object in a single stack
currentClientGet/Set the Equip Slot Client this item is currently equipped to
customNameGet/Set the custom name for this item
displayNameGet the current display name to use for this item
infoInformation about this object
initializedGet if this object has been initialized
instanceIdGet the id of this instance of the object
isEquippedGet/Set if this item is equipped
maxStacksGet the maximum number of allowed stacks for this item
pluginWrappersGet a list of plugin wrappers on this item
pluginsGet a list of plugins on this item
premimumValueGet the premium value of this item
rarityGet the rarity value of this item
statIdsGet a list of stat ids for this item
statSourceGet the Item Stat Source for this item
setIdItem Bonus Set assigned for this item
typeGets the type of the object
valueGet the value of this item
weightGet the weight of this item

Methods#

NameDescription
AddNameModifierAdd a name modifier to the item
AddPluginAdd a plugin to the item
AddStatValueAdd to the value of a stat
CanPerformActionCheck if a plugin action can be performed
CloneCreate a clone of this object
CopyValuesCopy all values from another object to this one
DataLoadLoad data from a stream
DataSaveSave data to a stream
GetInheritsFromGets the item this object inherits from
GetPluginGet a plugin of type T
GetPluginByInstanceGet a plugin of type T and matches supplied instanceId
GetPluginsGet a list of plugins of type T
GetStatGet a stat by id
GetStatValueGet the value of a stat by id
InitializeInitialize the object
MatchesCompare object to another copy
PerformActionPerform a plugin action
RemoveNameModifierRemove a name modifier
SetStatExpressionSet the expression of a stat
SetStatValueSet the value of a stat by id
ShutdownShuts down the object
ToJSONConvert item into JSON