mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Handle particle spawners in env and delete expired ids
Rebased by Zeno (2016-04-2016)
This commit is contained in:
parent
26a9a85129
commit
6278da296b
4 changed files with 62 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue