Conveyor renamed to belt internally

This commit is contained in:
Rendo 2025-10-15 00:41:06 +05:00
commit eab885b9d3
8 changed files with 6 additions and 6 deletions

View file

@ -20,7 +20,7 @@ config/icon="res://icon.svg"
GuiEventBus="*res://scripts/gui/gui_event_bus.gd"
RuntimePlayerData="*res://scripts/autoloads/runtime_player_data.gd"
Registry="*res://scripts/autoloads/registry.gd"
ConveyorManager="*res://scripts/autoloads/conveyor_manager.gd"
BeltManager="*res://scripts/autoloads/belt_manager.gd"
[display]

View file

@ -3,8 +3,8 @@
[ext_resource type="Texture2D" uid="uid://gfkhedfdi7ug" path="res://sprites/atlasses/Popekko.png" id="1_kqxj7"]
[ext_resource type="Script" uid="uid://bbd7o2st8kmgl" path="res://scripts/structure.gd" id="1_y326v"]
[ext_resource type="Script" uid="uid://bd4ojfqrl8idm" path="res://scripts/inventory/inventory_slot.gd" id="2_54w8r"]
[ext_resource type="Script" uid="uid://v0hkuo3gda1b" path="res://scripts/inventory/conveyor_inventory.gd" id="3_ruvuk"]
[ext_resource type="Script" uid="uid://bp341eiwvfvyl" path="res://scripts/structures/conveyor.gd" id="5_54w8r"]
[ext_resource type="Script" uid="uid://v0hkuo3gda1b" path="res://scripts/inventory/belt_inventory.gd" id="3_ruvuk"]
[ext_resource type="Script" uid="uid://bp341eiwvfvyl" path="res://scripts/structures/belt.gd" id="5_54w8r"]
[sub_resource type="Resource" id="Resource_t4je2"]
resource_local_to_scene = true

View file

@ -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:

View file

@ -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):