VirtualItemContainer
Gets a number count of an item type stored in the container if any
sort
Weight: 10
Gets a number count of an item type stored in the container if any
Version: v5.0.0
STABLE
Inherits: Node
Source: virtual_item_container.gd
Parsing: AST-based for maximum accuracy with symbol typing
Methods
try_remove
Signature: try_remove(type: Resource, amount: int) -> int
Returns the actual amount removed
Returns: int
Parameters:
type: Resourceamount: int
try_add
Signature: try_add(type: Resource, amount: int) -> int
Returns the actual amount added
Returns: int
Parameters:
type: Resourceamount: int
get_count
Signature: get_count(type: Resource) -> int
Gets a number count of an item type stored in the container if any
Returns: int
Parameters:
type: Resource