Skip to content

ItemDefinition

Namespace: StackInventory.Game.Definitions
Inherits: DefinitionResource

NameTypeDescription
IsUniquebool
PickupSoundAudioStream?
Tooltipstring
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).

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.

string ToString()