Item Composition - 416rehman/mythic.obsidian GitHub Wiki
#technical #itemization
ItemDefinitions
are composed of one or more FragmentDefinitions
.
ItemDefinitions
are used to create ItemInstances
When an Item Instance is created from an ItemDefinition, it loops through all its FragmentDefinitions and creates an instance of the FragmentInstanceClass defined in the FragmentDefinition.
The FragmentInstance is then passed to the ItemInstance which adds it to it's ItemFragmentInstances array and calls the FragmentInstance's OnInstanced function, which by default sets the FragmentInstance's ItemInstance property to the owning ItemInstance.