mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Attached particle spawners
This commit is contained in:
parent
0b27a70b29
commit
c9e7a27eeb
13 changed files with 131 additions and 36 deletions
|
@ -329,7 +329,8 @@ public:
|
|||
void loadDefaultMeta();
|
||||
|
||||
u32 addParticleSpawner(float exptime);
|
||||
void deleteParticleSpawner(u32 id) { m_particle_spawners.erase(id); }
|
||||
u32 addParticleSpawner(float exptime, u16 attached_id);
|
||||
void deleteParticleSpawner(u32 id, bool remove_from_object = true);
|
||||
|
||||
/*
|
||||
External ActiveObject interface
|
||||
|
@ -519,6 +520,7 @@ private:
|
|||
// Particles
|
||||
IntervalLimiter m_particle_management_interval;
|
||||
UNORDERED_MAP<u32, float> m_particle_spawners;
|
||||
UNORDERED_MAP<u32, u16> m_particle_spawner_attachments;
|
||||
};
|
||||
|
||||
#ifndef SERVER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue