diff options
author | sfan5 <sfan5@live.de> | 2020-05-22 13:23:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-22 13:23:25 +0200 |
commit | 1357ea1da25bf01acaf95d5f5419d4f83a84ed61 (patch) | |
tree | f75fee87e8edd827c26c02988390554ea662b73d /src/client/clientevent.h | |
parent | 1bcdc2d7e9d91f21cd9be2836b777c5088313fa8 (diff) | |
download | minetest-1357ea1da25bf01acaf95d5f5419d4f83a84ed61.tar.gz minetest-1357ea1da25bf01acaf95d5f5419d4f83a84ed61.tar.bz2 minetest-1357ea1da25bf01acaf95d5f5419d4f83a84ed61.zip |
Cleanup of particle & particlespawner structures and code (#9893)
Diffstat (limited to 'src/client/clientevent.h')
-rw-r--r-- | src/client/clientevent.h | 45 |
1 files changed, 9 insertions, 36 deletions
diff --git a/src/client/clientevent.h b/src/client/clientevent.h index 7f3984b03..9bd31efce 100644 --- a/src/client/clientevent.h +++ b/src/client/clientevent.h @@ -21,8 +21,13 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <string> #include "irrlichttypes_bloated.h" -#include "hud.h" -#include "skyparams.h" + +struct ParticleParameters; +struct ParticleSpawnerParameters; +struct SkyboxParams; +struct SunParams; +struct MoonParams; +struct StarParams; enum ClientEventType : u8 { @@ -77,44 +82,12 @@ struct ClientEvent } show_formspec; // struct{ //} textures_updated; + ParticleParameters *spawn_particle; struct { - v3f *pos; - v3f *vel; - v3f *acc; - f32 expirationtime; - f32 size; - bool collisiondetection; - bool collision_removal; - bool object_collision; - bool vertical; - std::string *texture; - struct TileAnimationParams animation; - u8 glow; - } spawn_particle; - struct - { - u16 amount; - f32 spawntime; - v3f *minpos; - v3f *maxpos; - v3f *minvel; - v3f *maxvel; - v3f *minacc; - v3f *maxacc; - f32 minexptime; - f32 maxexptime; - f32 minsize; - f32 maxsize; - bool collisiondetection; - bool collision_removal; - bool object_collision; + ParticleSpawnerParameters *p; u16 attached_id; - bool vertical; - std::string *texture; u64 id; - struct TileAnimationParams animation; - u8 glow; } add_particlespawner; struct { |