- Rename "type" -> "$type" (first key, required for STJ polymorphism) in all 109 spawn JSON files (5,612 records). - Convert "homeRange" + "location" -> "spawnBounds" object, dropping homeRange. Runtime keeps reading homeRange so un-migrated/external files still load. - Add BoundsEquivalenceTests (hr=0/1/3/7) validating that the script's toBounds formula produces the same Rectangle3D as the runtime homeRange path. - Add MigratedDataLoadTests loading a real migrated file as List<SpawnerDto> and round-tripping each DTO through ToSpawner(). - Add tools/spawner-json-migrate/migrate.mjs (offline Node script). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
74 lines
1.3 KiB
JSON
74 lines
1.3 KiB
JSON
[
|
|
{
|
|
"$type": "Spawner",
|
|
"guid": "076e8845-e42b-434d-8df6-380aaf7a3383",
|
|
"name": "Spawner (122)",
|
|
"location": [
|
|
3444,
|
|
2556,
|
|
30
|
|
],
|
|
"map": "Trammel",
|
|
"count": 3,
|
|
"minDelay": "00:05:00",
|
|
"maxDelay": "00:10:00",
|
|
"team": 0,
|
|
"spawnBounds": {
|
|
"x1": 3441,
|
|
"y1": 2553,
|
|
"z1": -128,
|
|
"x2": 3448,
|
|
"y2": 2560,
|
|
"z2": 128
|
|
},
|
|
"walkingRange": 3,
|
|
"entries": [
|
|
{
|
|
"name": "Cat",
|
|
"maxCount": 3,
|
|
"probability": 100
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"$type": "Spawner",
|
|
"guid": "af813f31-3e6a-4657-bd6d-640e0d74c328",
|
|
"name": "Spawner (122)",
|
|
"location": [
|
|
3487,
|
|
2549,
|
|
16
|
|
],
|
|
"map": "Trammel",
|
|
"count": 30,
|
|
"minDelay": "00:05:00",
|
|
"maxDelay": "00:10:00",
|
|
"team": 0,
|
|
"spawnBounds": {
|
|
"x1": 3387,
|
|
"y1": 2449,
|
|
"z1": -128,
|
|
"x2": 3588,
|
|
"y2": 2650,
|
|
"z2": 128
|
|
},
|
|
"walkingRange": 100,
|
|
"entries": [
|
|
{
|
|
"name": "Dog",
|
|
"maxCount": 5,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Cat",
|
|
"maxCount": 5,
|
|
"probability": 100
|
|
},
|
|
{
|
|
"name": "Bird",
|
|
"maxCount": 20,
|
|
"probability": 100
|
|
}
|
|
]
|
|
}
|
|
]
|