Added Arch Persitance and Relationships, styackable items, hot fixed Tags.containsAll. AutoList in Ordered!DList

This commit is contained in:
2026-05-16 12:44:51 -04:00
parent bf4d856608
commit 75c93f0c43
40 changed files with 52609 additions and 197 deletions

View File

@@ -23,6 +23,7 @@ public partial class SlicerTest : Node3D, IProvide<IBeltPortHost>, IProvide<IVox
private BeltPortHost _insertLogic = default!;
public IBeltPortHost Value() => _insertLogic;
[Dependency] public IVoxelGridRegistry GridRegistry => this.DependOn<IVoxelGridRegistry>();
[Dependency] public IFoodFactoryApi FoodFactory => this.DependOn<IFoodFactoryApi>();
[Dependency] public IRecipes Recipes => this.DependOn<IRecipes>();
IVoxelGridRegistry IProvide<IVoxelGridRegistry>.Value() => GridRegistry;
public GridTransform3D VoxelTransform
@@ -46,7 +47,7 @@ public partial class SlicerTest : Node3D, IProvide<IBeltPortHost>, IProvide<IVox
{
_itemBeingHeld = itemData.GetItem();
item.Dispose();
GD.Print("Added Item to slicer");
// GD.Print("Added Item to slicer");
return true;
}
throw new NotImplementedException();
@@ -54,10 +55,9 @@ public partial class SlicerTest : Node3D, IProvide<IBeltPortHost>, IProvide<IVox
_guid = GridRegistry.Register(this, VoxelTransform.Origin);
this.Provide();
var time = new Timer() { Autostart = true, OneShot = false, WaitTime = .1 };
AddChild(time);
time.Timeout += () =>
// var time = new Timer() { Autostart = true, OneShot = false, WaitTime = .1 };
// AddChild(time);
FoodFactory.TickManger.GameTick += _ =>
{
if (sliced.Any())
@@ -83,11 +83,12 @@ public partial class SlicerTest : Node3D, IProvide<IBeltPortHost>, IProvide<IVox
unsafe
{
while (RecipeProcessor.TryProcess(
ref recipes,
ref context,
ref builder,
&DestroyEntity,
out var created
recipes: ref recipes,
context: ref context,
builder: ref builder,
destroyEntity: &DestroyEntity,
filter: &RecipeProcessor.FilterByPass,
resultEntity: out var created
))
{
_itemBeingHeld = Entity.Null;