Conveyor renamed to belt internally
This commit is contained in:
parent
2f68d123d7
commit
eab885b9d3
8 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
|||
@tool
|
||||
extends Inventory
|
||||
|
||||
class_name ConveyorInventory
|
||||
class_name BeltInventory
|
||||
|
||||
## Amount of stacks that can be held in storage
|
||||
@export var capacity : int:
|
|
@ -1,14 +1,14 @@
|
|||
extends Node2D
|
||||
|
||||
@onready var parent_structure : Structure = get_parent()
|
||||
@onready var inventory : ConveyorInventory = parent_structure.inventory
|
||||
@onready var inventory : BeltInventory = parent_structure.inventory
|
||||
@onready var animator : AnimationPlayer = $"../AnimationPlayer"
|
||||
|
||||
func _ready() -> void:
|
||||
sync_animations.call_deferred()
|
||||
|
||||
func sync_animations() -> void:
|
||||
animator.seek(ConveyorManager.sync_time,true)
|
||||
animator.seek(BeltManager.sync_time,true)
|
||||
|
||||
func _draw() -> void:
|
||||
for i in range(inventory.capacity):
|
Loading…
Add table
Add a link
Reference in a new issue