Conveyor
This commit is contained in:
parent
cb9aef6761
commit
222960a824
19 changed files with 282 additions and 22 deletions
|
@ -4,12 +4,19 @@ extends Resource
|
|||
## Class that can hold items in it
|
||||
class_name Inventory
|
||||
|
||||
signal stack_added(item : Stack,position : int)
|
||||
signal stack_taken(item : Stack,position : int)
|
||||
|
||||
func _init() -> void:
|
||||
resource_local_to_scene = true
|
||||
|
||||
## Tries to add an item into inventory. Returns not stored stack of item.
|
||||
@abstract
|
||||
func add(item : Stack) -> Stack
|
||||
func add(stack : Stack) -> Stack
|
||||
|
||||
## Returns if conditions of adding are met
|
||||
@abstract
|
||||
func can_add() -> bool
|
||||
|
||||
## Tries to take first item. Returns null if no items in inventory
|
||||
@abstract
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue