Seprated many files, removed IDataCompiler with using YamlConverters. Refactored namespaces

This commit is contained in:
2026-05-28 11:42:36 -04:00
parent a76a50f38e
commit 0fa7ba766b
39 changed files with 1516 additions and 731 deletions

View File

@@ -0,0 +1,14 @@
namespace FoodFactory.Blueprints;
using FoodFactory.Core;
public readonly record struct BlueprintId
{
public readonly int Id;
public CompiledBlueprint Blueprint() => _registry.GetEntry(Id);
private static readonly Registry<CompiledBlueprint> _registry = new();
public BlueprintId(CompiledBlueprint blueprint)
{
Id = _registry.GetOrCreate(blueprint);
}
}