Commit graph Aetheria/tools/AetherDb/AuthoredSettings.cs
Author SHA1 Message Date
Meta Vens
2399d7b9ed Parse the settings asset with YamlDotNet
Unity assets are YAML, so parsing them is a solved problem. The hand rolled
indentation parser produced three bugs in sequences alone: bare scalar items
dropped, mapping items parented to the wrong node, then only the first item
of each sequence kept. YamlDotNet does the parsing; what remains is mapping
a parsed node onto a settings class by field name, with unknown keys
reported rather than silently misplaced.

The settings command keeps asserting counts, since that check is what caught
the parser both times.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-12 02:11:05 +02:00
Meta Vens
a63aa38f00 Read authored settings from the Unity asset
A fixture that invents curve and tier values measures a game nobody plays,
so the tool reads Assets/Resources/Settings.asset, whose GameSettings holds
plain ServerShared classes, and fills them by field name. The settings
command asserts counts rather than non-null: an empty array reads as
populated, and that lie cost two rounds of parsing bugs in sequences.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-12 02:09:34 +02:00