mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Attached particle spawners
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user