mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Basic camera control API (#15796)
This commit is contained in:
parent
50819ace8f
commit
ba62808fe8
18 changed files with 162 additions and 42 deletions
|
@ -36,6 +36,7 @@ enum ClientEventType : u8
|
|||
CE_SET_STARS,
|
||||
CE_OVERRIDE_DAY_NIGHT_RATIO,
|
||||
CE_CLOUD_PARAMS,
|
||||
CE_UPDATE_CAMERA,
|
||||
CLIENTEVENT_MAX,
|
||||
};
|
||||
|
||||
|
@ -66,11 +67,14 @@ struct ClientEventHudChange
|
|||
|
||||
struct ClientEvent
|
||||
{
|
||||
// TODO: should get rid of this ctor
|
||||
ClientEvent() : type(CE_NONE) {}
|
||||
|
||||
ClientEvent(ClientEventType type) : type(type) {}
|
||||
|
||||
ClientEventType type;
|
||||
union
|
||||
{
|
||||
// struct{
|
||||
//} none;
|
||||
struct
|
||||
{
|
||||
u16 amount;
|
||||
|
@ -86,8 +90,6 @@ struct ClientEvent
|
|||
std::string *formspec;
|
||||
std::string *formname;
|
||||
} show_formspec;
|
||||
// struct{
|
||||
//} textures_updated;
|
||||
ParticleParameters *spawn_particle;
|
||||
struct
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue