ItemBasic:UPrimalItemBasic
Usage: Each item has a separate basic attribute, which stores the item name, maximum quantity, etc., and has a fixed attribute array (UItemAttribute), which can also be used as an ItemClass
Variable | Explain |
---|---|
ItemName | ItemName |
Description | Item Description (Introduction) |
Image | Icon |
MaxQuantity | Maximum stacking quantity |
Weight | Individual weight |
Rarity | Quality, the basic quality of the item, used to distinguish the rarity of the item, not the star rating of the item |
ItemType | Item type, such as armor, weapons, materials, etc. classification |
ItemPanel | Item pagination, used for UI filtering and searching |
Attributes | An item attribute array used to store all fixed attributes of the item |
Function | Explain |
---|---|
DoesImplementAttribute(TSubclassOf<UItemAttribute> AttributeClass) | Whether to implement attributes |
GetAttribute(TSubclassOf<UItemAttribute> AttributeClass) | get attribute |
GetAttributeByType(EItemAttributeType AttributeType) | get attribute |
Quick Function(Need to have corresponding attributes) | Explain |
GetEquipSlot | Obtain item equipment slot type |
GetStat(EAbilityStatType StatType) | Obtain equipment attributes |