Production/Demand Profiles and Blueprint Resource Requirements
Added the ability to associate blueprints and compound commodities with personality attributes Added the ability to restrict blueprints according to the presence of resources, for resource harvesting infrastructure Improved the properties panel UI for Sector and Tech tabs
This commit is contained in:
parent
98937c4b87
commit
35fb4381ed
16 changed files with 769 additions and 263 deletions
|
|
@ -50,6 +50,12 @@ public class BlueprintData : DatabaseEntry, INamedEntry
|
|||
|
||||
[InspectableDatabaseLink(typeof(CraftedItemData)), JsonProperty("factoryItem"), Key(14)]
|
||||
public Guid FactoryItem;
|
||||
|
||||
[InspectableDatabaseLink(typeof(SimpleCommodityData)), JsonProperty("resourceRequirements"), Key(15)]
|
||||
public Dictionary<Guid, int> ResourceRequirements = new Dictionary<Guid, int>();
|
||||
|
||||
[InspectableDatabaseLink(typeof(PersonalityAttribute)), JsonProperty("productionProfile"), Key(16)]
|
||||
public Dictionary<Guid, float> ProductionProfile = new Dictionary<Guid, float>();
|
||||
|
||||
[IgnoreMember] public string EntryName
|
||||
{
|
||||
|
|
@ -64,16 +70,16 @@ public class BlueprintStatEffect
|
|||
[InspectableField, JsonProperty("ingredient"), Key(1)]
|
||||
public Guid Ingredient;
|
||||
|
||||
[InspectableField, JsonProperty("stat"), Key(2)]
|
||||
[InspectableField, JsonProperty("stat"), Key(2)]
|
||||
public StatReference StatReference = new StatReference();
|
||||
}
|
||||
|
||||
[InspectableField, MessagePackObject, JsonObject(MemberSerialization.OptIn)]
|
||||
public class StatReference
|
||||
{
|
||||
[InspectableType(typeof(IBehaviorData)), JsonProperty("behavior"), Key(1)]
|
||||
[InspectableType(typeof(IBehaviorData)), JsonProperty("behavior"), Key(1)]
|
||||
public string Behavior;
|
||||
|
||||
[InspectableField, JsonProperty("stat"), Key(2)]
|
||||
[InspectableField, JsonProperty("stat"), Key(2)]
|
||||
public string Stat;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue