Date: 2025-11-22
Accepted
As new systems (Conditions, CombatStats, Inventory) were added, the serialization model (CreatureState) needed to evolve to persist this data.
We updated the State DTOs and ToState/FromState methods.
- CreatureState: Added
Conditions(list of strings/enums),Inventory(list of item states), and updatedHitPoints(death saves). - JSON Serialization: Validated that complex nested objects (like a Creature holding Items) serialize correctly to JSON.
- Refactoring: Cleaned up
StandardCreatureserialization logic to delegate to sub-components (HitPoints.GetState(),Inventory.GetState()).
- Full creature state can be saved and loaded.
- Backward compatibility is not guaranteed during this rapid development phase (breaking changes to schema are accepted).
System.Text.Jsonis the chosen serializer.