Pin CultLib abd1a92e: element ids on every list element type, tests follow the new wire and write rules

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Nibu 2026-11-11 09:50:22 +00:00
commit ff54fe7b46
33 changed files with 251 additions and 27 deletions

View file

@ -63,6 +63,9 @@ public class CommodityCount
[JsonProperty("count"), Key(1)]
public int Count = 1;
// Element identity: minted by the cache on write; "" means unset.
[Key(2)] [CultElementId] public string Id = "";
}
// A region gate's trade with the world beyond it: what the outside buys and sells, at what price and at most how fast.
@ -96,6 +99,9 @@ public class OutsideMarketRow
[JsonProperty("ratePerHour"), Key(4)]
public float RatePerHour;
// Element identity: minted by the cache on write; "" means unset.
[Key(5)] [CultElementId] public string Id = "";
}
// The one reader of recipes: which recipe makes a good, a recipe's role slots (RoleInputsOf), which commodities fill a role, and