From 6278da296be13c1229bfce45c476119a1db9477f Mon Sep 17 00:00:00 2001 From: obneq Date: Thu, 28 Apr 2016 01:58:09 +1000 Subject: Handle particle spawners in env and delete expired ids Rebased by Zeno (2016-04-2016) --- src/environment.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/environment.h') diff --git a/src/environment.h b/src/environment.h index 660c6f1bc..c6786faed 100644 --- a/src/environment.h +++ b/src/environment.h @@ -337,6 +337,9 @@ public: // env_meta.txt doesn't exist (e.g. new world) void loadDefaultMeta(); + u32 addParticleSpawner(float exptime); + void deleteParticleSpawner(u32 id); + /* External ActiveObject interface ------------------------------------------- @@ -516,6 +519,10 @@ private: // Estimate for general maximum lag as determined by server. // Can raise to high values like 15s with eg. map generation mods. float m_max_lag_estimate; + + // Particles + IntervalLimiter m_particle_management_interval; + std::map m_particle_spawners; }; #ifndef SERVER -- cgit v1.2.3