summaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
authorobneq <obbneq@gmail.com>2016-04-28 01:58:09 +1000
committerCraig Robbins <kde.psych@gmail.com>2016-04-28 02:09:36 +1000
commit6278da296be13c1229bfce45c476119a1db9477f (patch)
tree3bdb3d3eab6e6829edff36e006198eea184f463a /src/environment.h
parent26a9a85129db3c769a9deecf905640858dc48ed8 (diff)
downloadminetest-6278da296be13c1229bfce45c476119a1db9477f.tar.gz
minetest-6278da296be13c1229bfce45c476119a1db9477f.tar.bz2
minetest-6278da296be13c1229bfce45c476119a1db9477f.zip
Handle particle spawners in env and delete expired ids
Rebased by Zeno (2016-04-2016)
Diffstat (limited to 'src/environment.h')
-rw-r--r--src/environment.h7
1 files changed, 7 insertions, 0 deletions
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<u32, float> m_particle_spawners;
};
#ifndef SERVER