Fixed confict between null inventories, non conveyor inventories and conveyor
This commit is contained in:
parent
c566936cfc
commit
2f68d123d7
4 changed files with 17 additions and 1 deletions
|
@ -13,10 +13,14 @@ func _init() -> void:
|
|||
## Tries to add an item into inventory. Returns not stored stack of item.
|
||||
@abstract
|
||||
func add(stack : Stack) -> Stack
|
||||
@abstract
|
||||
func add_from_side(stack : Stack, ang_diff : float) -> Stack
|
||||
|
||||
## Returns if conditions of adding are met
|
||||
@abstract
|
||||
func can_add() -> bool
|
||||
@abstract
|
||||
func can_add_from_side(ang_diff : float) -> 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