mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-06 00:53:52 +00:00
feat(editor): NPC scatter tool, adjacent tile creation, multi-tile prep
- Scatter tool: place N creatures in a radius around cursor position with random rotation and uniform disk distribution - File > Add Adjacent Tile: creates and exports a blank tile N/S/E/W of current (foundation for multi-tile zone editing) - Scatter UI: count slider (1-30), radius slider (10-200) - Scatter places all copies with same stats/behavior as template
This commit is contained in:
parent
6e24e08818
commit
48026421c9
5 changed files with 67 additions and 0 deletions
|
|
@ -81,6 +81,10 @@ public:
|
|||
// Template creature for placement
|
||||
CreatureSpawn& getTemplate() { return template_; }
|
||||
|
||||
// Scatter: place multiple copies in a radius around a point
|
||||
void scatter(const CreatureSpawn& base, const glm::vec3& center,
|
||||
float radius, int count);
|
||||
|
||||
private:
|
||||
uint32_t nextId();
|
||||
std::vector<CreatureSpawn> spawns_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue