Conveyor
This commit is contained in:
parent
cb9aef6761
commit
222960a824
19 changed files with 282 additions and 22 deletions
9
scripts/structures/debug_item_deposit.gd
Normal file
9
scripts/structures/debug_item_deposit.gd
Normal file
|
@ -0,0 +1,9 @@
|
|||
extends Node
|
||||
|
||||
const test_item :=preload("res://generic/items/dbg_item.tres")
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
for point in [Vector2(-1,0),Vector2(1,0),Vector2(0,1),Vector2(0,-1)]:
|
||||
var found_structure = get_parent().get_relative(point)
|
||||
if found_structure:
|
||||
found_structure.inventory.add(Stack.new(test_item,1))
|
Loading…
Add table
Add a link
Reference in a new issue