Broken pos

This commit is contained in:
Rendo 2025-10-15 11:55:18 +05:00
commit 3af13d0a8b
24 changed files with 304 additions and 146 deletions

View file

@ -18,14 +18,17 @@ func add_from_side(stack : Stack, ang_diff : float) -> Stack
## Returns if conditions of adding are met
@abstract
func can_add() -> bool
func can_add(item : Item = null) -> bool
@abstract
func can_add_from_side(ang_diff : float) -> bool
func can_add_from_side(ang_diff : float, item : Item = null) -> bool
## Tries to take first item. Returns null if no items in inventory
@abstract
func pop() -> Stack
@abstract
func peek() -> Stack
## Tries to take certain item from inventory. Returns null if no item found
@abstract
func take(item : Item,amount: int) -> Stack