mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
feat(production): add shared planner and factory analysis
Add Proto-backed planning, fixed-building analysis, blueprint capture, and facility-specific material and power calculations. Migrate belt-signal upstream statistics, include review fixes, and document the architecture and manual validation workflow.
This commit is contained in:
1 parent
0915917c6f
commit
97f032a5af
30 files changed
+5041
-250
No files matched your search
@@ -0,0 +1,36 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace UXAssist.Production;
|
||||
|
||||
public sealed class ProductionTarget
|
||||
{
|
||||
public int ItemId { get; }
|
||||
public double ItemsPerMinute { get; }
|
||||
|
||||
public ProductionTarget(int itemId, double itemsPerMinute)
|
||||
{
|
||||
ItemId = itemId;
|
||||
ItemsPerMinute = itemsPerMinute;
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class ProductionPlanRequest
|
||||
{
|
||||
public List<ProductionTarget> Targets { get; } = new List<ProductionTarget>();
|
||||
public HashSet<int> ExternalMaterials { get; } = new HashSet<int>();
|
||||
public Dictionary<int, int> RecipeByItem { get; } = new Dictionary<int, int>();
|
||||
public Dictionary<int, ProliferationMode> ProliferationModeByItem { get; } =
|
||||
new Dictionary<int, ProliferationMode>();
|
||||
public Dictionary<int, int> BuildingByRecipe { get; } = new Dictionary<int, int>();
|
||||
public Dictionary<ProductionRecipeCategory, int> BuildingByCategory { get; } =
|
||||
new Dictionary<ProductionRecipeCategory, int>();
|
||||
public Dictionary<int, double> KnownExternalSurplus { get; } = new Dictionary<int, double>();
|
||||
public HashSet<int> SprayDeliveredItems { get; } = new HashSet<int>();
|
||||
public Dictionary<int, Dictionary<string, double>> OperatingParametersByRecipe { get; } =
|
||||
new Dictionary<int, Dictionary<string, double>>();
|
||||
public List<ProductionBuildingSnapshot> AuxiliaryBuildings { get; } = new List<ProductionBuildingSnapshot>();
|
||||
public bool ProliferationEnabled { get; set; }
|
||||
public int ProliferatorItemId { get; set; }
|
||||
public bool SelfSprayProliferator { get; set; }
|
||||
public int IterationBudget { get; set; } = 20000;
|
||||
}
|
||||
Reference in new issue
Block a user