Chaos_Kitchen/Scripts/Interactibles/Item_Container.gd

18 lines
190 B
GDScript3
Raw Normal View History

class_name ItemContainer extends Interactible
@export
var items : Array[Item]
func pop_item(index: int = 0):
2024-02-19 12:16:42 +01:00
items.pop_at(index)
func add_item(item: Item):
2024-02-19 12:16:42 +01:00
items.append(item)