ItemDefinition
Namespace: StackInventory.Game.Definitions
Inherits: DefinitionResource
Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
IsUnique | bool | |
PickupSound | AudioStream? | |
Tooltip | string |
Methods
Section titled “Methods”HasTag
Section titled “HasTag”bool HasTag(ItemTag tag)Checks if this item has a specific tag.
Parameters:
tag- The tag to check for.
Returns:
True if the item has the tag (or a child tag in hierarchy).
ToCore
Section titled “ToCore”Item ToCore()Converts this Godot resource to a POCS Item. NOTE: Prefer using IItem interface directly instead of calling ToCore(). This method is kept for backward compatibility with DefinitionResource base class.
ToString
Section titled “ToString”string ToString()