Removed LaneSpan, may be add later as diffrent movemnet system.

This commit is contained in:
2026-05-17 23:44:03 -04:00
parent 75c93f0c43
commit 8a0347f1a1
16 changed files with 85 additions and 236 deletions

View File

@@ -54,11 +54,11 @@ public partial class ItemSpawner : Node3D, IProvide<IBeltPortHost>
}
var itemBlueprint = ItemFactory.GetBlueprint(ItemName);
var dummyItem = new TestItem();
if (beltPort.CanAccept(dummyItem, LaneSpan.One, 0))
if (beltPort.CanAccept(dummyItem, 0))
{
var ctx = new BlueprintContext() { BluePrintId = new BlueprintId(itemBlueprint), World = World };
dummyItem.Item = itemBlueprint.Factory(ctx);
if (!beltPort.TryInsert(dummyItem, LaneSpan.One, 0))
if (!beltPort.TryInsert(dummyItem, 0))
{
World.Destroy(dummyItem.Item);//TODO this should not call, but not sure
GD.PushWarning("Item failed to insert into port and removed item, item was destroyed but make sure item to prevent overhead.");