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:
parent
2c087bf2b0
commit
ff54fe7b46
33 changed files with 251 additions and 27 deletions
|
|
@ -78,6 +78,9 @@ public class SavedStanding
|
|||
|
||||
[Key(1)]
|
||||
public FactionRelationship Relationship;
|
||||
|
||||
// Element identity: minted by the cache on write; "" means unset.
|
||||
[Key(2)] [CultElementId] public string Id = "";
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
|
|
@ -88,6 +91,9 @@ public class SavedProvince
|
|||
|
||||
[Key(1)]
|
||||
public CultRecordRef<ProvinceData> Type;
|
||||
|
||||
// Element identity: minted by the cache on write; "" means unset.
|
||||
[Key(2)] [CultElementId] public string Id = "";
|
||||
}
|
||||
|
||||
// The run's lifecycle over the run store. Only Commit creates SavedGame, SavedZone and ProvenanceLedger records;
|
||||
|
|
@ -301,6 +307,9 @@ public class SavedZone
|
|||
]
|
||||
public abstract class SavedActionBarBinding
|
||||
{
|
||||
|
||||
// Element identity: minted by the cache on write; "" means unset.
|
||||
[Key(2)] [CultElementId] public string Id = "";
|
||||
}
|
||||
|
||||
[MessagePackObject]
|
||||
|
|
|
|||
Loading…
Reference in a new issue