17 lines
190 B
GDScript
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)
|
|
|
|
|
|
|
|
|