mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-08 18:13:52 +00:00
feat(editor): in-editor "Audit Spawns Against Terrain" menu
EditorApp::auditSpawnsAgainstTerrain(threshold) counts every creature + object whose Z is more than `threshold` yards off the sampled terrain. Returns the issue count; non-mutating. Generate menu gets a new "Audit Spawns Against Terrain" item that runs the audit at the default 5y threshold and shows a toast: a clean count if everything's fine, or the issue count + a hint to run "Snap All" if not. Surfaces placement bugs without dropping to the CLI. Pairs with the existing "Snap All Spawns to Ground" so the workflow stays inside the editor: audit → see count → snap → audit again.
This commit is contained in:
parent
6c84a8da6c
commit
6a7ea6dcfc
3 changed files with 42 additions and 0 deletions
|
|
@ -106,6 +106,11 @@ public:
|
|||
// mirror of the --snap-zone-to-ground CLI; useful after terrain
|
||||
// edits or random population to fix floating/buried spawns.
|
||||
void snapAllSpawnsToGround();
|
||||
// Count spawns whose Z is more than `threshold` yards off from
|
||||
// the terrain. Returns the issue count; 0 means clean. Used by
|
||||
// the in-editor "Audit Spawns" menu to surface placement bugs
|
||||
// without dropping to CLI.
|
||||
int auditSpawnsAgainstTerrain(float threshold = 5.0f) const;
|
||||
void centerOnTerrain();
|
||||
|
||||
// Multi-tile support
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue