Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
clientevent.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2017 nerzhul, Loic Blot <loic.blot@unix-experience.fr>
4
5#pragma once
6
7#include <string>
8#include "irrlichttypes.h"
9#include "client/hud.h" // HudElementStat
10
13struct SkyboxParams;
14struct SunParams;
15struct MoonParams;
16struct StarParams;
17
40
54
65
67{
69 union
70 {
71 // struct{
72 //} none;
73 struct
74 {
75 u16 amount;
76 bool effect;
78 struct
79 {
80 f32 pitch;
81 f32 yaw;
83 struct
84 {
85 std::string *formspec;
86 std::string *formname;
88 // struct{
89 //} textures_updated;
91 struct
92 {
95 u64 id;
97 struct
98 {
99 u32 id;
102 struct
103 {
104 u32 id;
108 struct
109 {
111 float ratio_f;
113 struct
114 {
127 };
128};
ClientEventType
Definition clientevent.h:19
@ CE_DELETE_PARTICLESPAWNER
Definition clientevent.h:28
@ CE_OVERRIDE_DAY_NIGHT_RATIO
Definition clientevent.h:36
@ CE_CLOUD_PARAMS
Definition clientevent.h:37
@ CE_SET_MOON
Definition clientevent.h:34
@ CE_SET_STARS
Definition clientevent.h:35
@ CE_ADD_PARTICLESPAWNER
Definition clientevent.h:27
@ CE_SET_SUN
Definition clientevent.h:33
@ CE_PLAYER_FORCE_MOVE
Definition clientevent.h:22
@ CE_SPAWN_PARTICLE
Definition clientevent.h:26
@ CE_SHOW_FORMSPEC
Definition clientevent.h:24
@ CE_PLAYER_DAMAGE
Definition clientevent.h:21
@ CE_HUDRM
Definition clientevent.h:30
@ CE_SET_SKY
Definition clientevent.h:32
@ CE_HUDADD
Definition clientevent.h:29
@ CE_SHOW_LOCAL_FORMSPEC
Definition clientevent.h:25
@ CE_HUDCHANGE
Definition clientevent.h:31
@ CE_DEATHSCREEN_LEGACY
Definition clientevent.h:23
@ CE_NONE
Definition clientevent.h:20
@ CLIENTEVENT_MAX
Definition clientevent.h:38
HudElementStat
Definition hud.h:59
core::vector2d< s32 > v2s32
Definition irr_v2d.h:13
core::vector2d< f32 > v2f
Definition irr_v2d.h:11
core::vector3df v3f
Definition irr_v3d.h:11
Definition clientevent.h:42
v2f scale
Definition clientevent.h:45
v2f align
Definition clientevent.h:49
u32 item
Definition clientevent.h:48
v2f pos
Definition clientevent.h:45
u8 type
Definition clientevent.h:44
std::string text2
Definition clientevent.h:47
u32 style
Definition clientevent.h:48
std::string name
Definition clientevent.h:46
u32 server_id
Definition clientevent.h:43
u32 number
Definition clientevent.h:48
v3f world_pos
Definition clientevent.h:50
v2f offset
Definition clientevent.h:49
std::string text
Definition clientevent.h:47
s16 z_index
Definition clientevent.h:52
u32 dir
Definition clientevent.h:48
v2s32 size
Definition clientevent.h:51
Definition clientevent.h:56
u32 id
Definition clientevent.h:57
std::string sdata
Definition clientevent.h:60
v2f v2fdata
Definition clientevent.h:59
HudElementStat stat
Definition clientevent.h:58
u32 data
Definition clientevent.h:61
v2s32 v2s32data
Definition clientevent.h:63
v3f v3fdata
Definition clientevent.h:62
Definition clientevent.h:67
f32 pitch
Definition clientevent.h:80
float ratio_f
Definition clientevent.h:111
bool effect
Definition clientevent.h:76
u16 attached_id
Definition clientevent.h:94
struct ClientEvent::@3::@9 delete_particlespawner
struct ClientEvent::@3::@10 hudrm
u16 amount
Definition clientevent.h:75
ClientEventType type
Definition clientevent.h:68
u32 color_bright
Definition clientevent.h:116
ClientEventHudChange * hudchange
Definition clientevent.h:106
struct ClientEvent::@3::@8 add_particlespawner
u64 id
Definition clientevent.h:95
f32 thickness
Definition clientevent.h:120
SunParams * sun_params
Definition clientevent.h:124
f32 speed_x
Definition clientevent.h:121
std::string * formname
Definition clientevent.h:86
u32 color_shadow
Definition clientevent.h:118
SkyboxParams * set_sky
Definition clientevent.h:107
struct ClientEvent::@3::@12 cloud_params
struct ClientEvent::@3::@7 show_formspec
f32 height
Definition clientevent.h:119
std::string * formspec
Definition clientevent.h:85
ParticleParameters * spawn_particle
Definition clientevent.h:90
MoonParams * moon_params
Definition clientevent.h:125
struct ClientEvent::@3::@11 override_day_night_ratio
ParticleSpawnerParameters * p
Definition clientevent.h:93
ClientEventHudAdd * hudadd
Definition clientevent.h:101
StarParams * star_params
Definition clientevent.h:126
u32 color_ambient
Definition clientevent.h:117
f32 yaw
Definition clientevent.h:81
struct ClientEvent::@3::@5 player_damage
f32 speed_y
Definition clientevent.h:122
f32 density
Definition clientevent.h:115
struct ClientEvent::@3::@6 player_force_move
bool do_override
Definition clientevent.h:110
u32 id
Definition clientevent.h:99
Definition skyparams.h:48
Definition particles.h:303
Definition particles.h:314
Definition skyparams.h:20
Definition skyparams.h:56
Definition skyparams.h:38