Trigger API Reference DCEI Functions Custom Data0 - funovus/editor-wiki GitHub Wiki
Table of Contents
- [Trigger API Reference\DCEI Functions\Custom Data](#trigger-api-referencedcei-functionscustom-data)
* [object GetAllCustomData()](#object-getallcustomdata)
* [object GetCustomDataByType(string typeName)](#object-getcustomdatabytypestring-typename)
* [object GetDefaultCustomDataByType(string typeName)](#object-getdefaultcustomdatabytypestring-typename)
* [object GetCustomDataByInstance(string typeName, string instanceName)](#object-getcustomdatabyinstancestring-typename-string-instancename)
|
Trigger API Reference\DCEI Functions\Custom Data {Trigger-API-ReferenceDCEI-FunctionsCustom-Data}
object GetAllCustomData()
Returns a table of all the custom data.
local custom_data = DCEI.GetAllCustomData()
object GetCustomDataByType(string typeName)
Returns a table of all the custom data of the given type.
local talents = DCEI.GetCustomDataByType("Talents")
object GetDefaultCustomDataByType(string typeName) {object-GetDefaultCustomDataByTypestring-typeName}
object GetDefaultCustomDataByType(string typeName)
Returns a table of all the default custom data of the given type.
local talent_defaults = DCEI.GetDefaultCustomDataByType("Talents")
object GetCustomDataByInstance(string typeName, string instanceName) {object-GetCustomDataByInstancestring-typeName-string-instanceName}
object GetCustomDataByInstance(string typeName, string instanceName)
Returns a table of all the custom data of the given type of a specific instance.
local talent_fireball = DCEI.GetCustomDataByInstance("Talents", "Fireball")