OldInventory๐Ÿ”—

Inherits: Node3D

This component allows its entity to interact with items.

Properties๐Ÿ”—

int

capacity

3

int

cursor

0

Methoden๐Ÿ”—

void

set_cursor(new_cursor: int)

void

_emit_child(sig: Signal, idx: int)

void

_ready()

void

_on_unselected(node: Node)

void

_on_selected(node: Node)

void

_add_child(node: Node, force_readable_name: bool = false, internal: Node.InternalMode = 0)

void

select(index: int)

void

cycle(shift: int = 1)

void

req_loadout(_index: int = 0)

void

rcv_loadout(loadout: String)


Signals๐Ÿ”—

selection_changed(index: int) ๐Ÿ”—

There is currently no description for this signal. Please help us by contributing one!


selected(node: Node) ๐Ÿ”—

There is currently no description for this signal. Please help us by contributing one!


unselected(node: Node) ๐Ÿ”—

There is currently no description for this signal. Please help us by contributing one!


Constants๐Ÿ”—

_max_items = 3 ๐Ÿ”—

There is currently no description for this constant. Please help us by contributing one!


Eigenschaftsbeschreibungen๐Ÿ”—

int capacity = 3 ๐Ÿ”—

  • void @capacity_setter(value: int)

This is the total capacity of the inventory.


int cursor = 0 ๐Ÿ”—

  • void set_cursor(new_cursor: int)

There is currently no description for this property. Please help us by contributing one!


Methodenbeschreibungen๐Ÿ”—

void set_cursor(new_cursor: int) ๐Ÿ”—

There is currently no description for this method. Please help us by contributing one!


void _emit_child(sig: Signal, idx: int) ๐Ÿ”—

There is currently no description for this method. Please help us by contributing one!


void _ready() ๐Ÿ”—

There is currently no description for this method. Please help us by contributing one!


void _on_unselected(node: Node) ๐Ÿ”—

There is currently no description for this method. Please help us by contributing one!


void _on_selected(node: Node) ๐Ÿ”—

There is currently no description for this method. Please help us by contributing one!


void _add_child(node: Node, force_readable_name: bool = false, internal: Node.InternalMode = 0) ๐Ÿ”—

This method overrides Node.add_child to make sure not to exceed inventory capacity.


void select(index: int) ๐Ÿ”—

This method moves the selection cursor to specified item index.


void cycle(shift: int = 1) ๐Ÿ”—

This method cycles through items in the inventory.


void req_loadout(_index: int = 0) ๐Ÿ”—

There is currently no description for this method. Please help us by contributing one!


void rcv_loadout(loadout: String) ๐Ÿ”—

There is currently no description for this method. Please help us by contributing one!