]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/client/clientevent.h
Remove unused ITextSceneNode header (#11476)
[dragonfireclient.git] / src / client / clientevent.h
index 7f3984b03ff5c1bdb9738bc88b91ae2a57282987..2215aecbd31fecceaff5080aea62d94bf1067f4c 100644 (file)
@@ -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
 {
@@ -47,6 +52,31 @@ enum ClientEventType : u8
        CLIENTEVENT_MAX,
 };
 
+struct ClientEventHudAdd
+{
+       u32 server_id;
+       u8 type;
+       v2f pos, scale;
+       std::string name;
+       std::string text, text2;
+       u32 number, item, dir;
+       v2f align, offset;
+       v3f world_pos;
+       v2s32 size;
+       s16 z_index;
+};
+
+struct ClientEventHudChange
+{
+       u32 id;
+       HudElementStat stat;
+       v2f v2fdata;
+       std::string sdata;
+       u32 data;
+       v3f v3fdata;
+       v2s32 v2s32data;
+};
+
 struct ClientEvent
 {
        ClientEventType type;
@@ -77,81 +107,23 @@ 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
                {
                        u32 id;
                } delete_particlespawner;
-               struct
-               {
-                       u32 server_id;
-                       u8 type;
-                       v2f *pos;
-                       std::string *name;
-                       v2f *scale;
-                       std::string *text;
-                       u32 number;
-                       u32 item;
-                       u32 dir;
-                       v2f *align;
-                       v2f *offset;
-                       v3f *world_pos;
-                       v2s32 *size;
-                       s16 z_index;
-                       std::string *text2;
-               } hudadd;
+               ClientEventHudAdd *hudadd;
                struct
                {
                        u32 id;
                } hudrm;
-               struct
-               {
-                       u32 id;
-                       HudElementStat stat;
-                       v2f *v2fdata;
-                       std::string *sdata;
-                       u32 data;
-                       v3f *v3fdata;
-                       v2s32 *v2s32data;
-               } hudchange;
+               ClientEventHudChange *hudchange;
                SkyboxParams *set_sky;
                struct
                {