Chaos_Kitchen/Scripts/Interactibles/Item_Container.gd

17 lines
190 B
GDScript

class_name ItemContainer extends Interactible
@export
var items : Array[Item]
func pop_item(index: int = 0):
items.pop_at(index)
func add_item(item: Item):
items.append(item)