ModernUO/Projects/UOContent/Engines/Spawners
Kamron Batman 644488dde7 feat(spawners): add typed JSON binding for RegionSpawner
Add RegionSpawner.Json.cs with a `region` shadow property (serializes
SpawnRegion.Name) and OnAfterJsonDeserialize override that resolves the
region by name using _jsonMap from BaseSpawner. Mark RegionSpawner with
[JsonDiscoverableType] and [JsonConstructor] on its parameterless ctor
so SpawnerJsonSerializer discovers it for STJ polymorphism.

Add RegionSpawnerRoundTripTests: create+register a test BaseRegion on
Felucca (game regions are not loaded in the test environment), serialize
a RegionSpawner, assert $type and region name in JSON, deserialize, and
assert SpawnRegion.Name round-trips correctly. RED → GREEN confirmed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-25 10:38:23 -07:00
..
Commands fix: Adds handling empty spawner files (#2360) 2026-03-10 23:04:39 -07:00
BaseSpawner.cs fix: Fixes zero height spawners and normalizes spawn bounds before use. (#2301) 2025-12-31 10:25:42 -08:00
BaseSpawner.Json.cs feat(spawners): add SpawnerJsonSerializer + typed JSON binding for Spawner 2026-06-25 10:27:55 -07:00
BaseSpawner.Migrations.cs feat: Add spawn position caching and spiral scan optimization (#2295) 2025-12-28 02:40:21 -08:00
ProximitySpawner.cs fix: Bumps deps. Updates copyrights (#2353) 2026-03-05 19:36:54 -08:00
RegionSpawner.cs feat(spawners): add typed JSON binding for RegionSpawner 2026-06-25 10:38:23 -07:00
RegionSpawner.Json.cs feat(spawners): add typed JSON binding for RegionSpawner 2026-06-25 10:38:23 -07:00
SectorSpawnCache.cs fix: Bumps deps. Updates copyrights (#2353) 2026-03-05 19:36:54 -08:00
Spawner.cs feat(spawners): add SpawnerJsonSerializer + typed JSON binding for Spawner 2026-06-25 10:27:55 -07:00
Spawner.Json.cs feat(spawners): add SpawnerJsonSerializer + typed JSON binding for Spawner 2026-06-25 10:27:55 -07:00
SpawnerControllerGump.cs fix: Bumps deps. Updates copyrights (#2353) 2026-03-05 19:36:54 -08:00
SpawnerEntry.cs fix: Fixes spawn entry deserialization (#1693) 2024-03-03 08:45:16 -08:00
SpawnerGump.cs chore: Use var everywhere (#2294) 2025-12-27 16:47:28 -08:00
SpawnerJsonSerializer.cs feat(spawners): add SpawnerJsonSerializer + typed JSON binding for Spawner 2026-06-25 10:27:55 -07:00
SpawnPositionState.cs fix: Bumps deps. Updates copyrights (#2353) 2026-03-05 19:36:54 -08:00
SpawnPropsGump.cs feat: Consolidates staff gump layouts (#2404) 2026-04-08 11:42:46 -06:00