mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add player:override_day_night_ratio() for arbitrarily controlling sunlight brightness
This commit is contained in:
parent
86a6cca3cf
commit
6a3fa9df12
11 changed files with 107 additions and 2 deletions
|
@ -135,6 +135,7 @@ enum ClientEventType
|
|||
CE_HUDRM,
|
||||
CE_HUDCHANGE,
|
||||
CE_SET_SKY,
|
||||
CE_OVERRIDE_DAY_NIGHT_RATIO,
|
||||
};
|
||||
|
||||
struct ClientEvent
|
||||
|
@ -223,6 +224,10 @@ struct ClientEvent
|
|||
std::string *type;
|
||||
std::vector<std::string> *params;
|
||||
} set_sky;
|
||||
struct{
|
||||
bool do_override;
|
||||
float ratio_f;
|
||||
} override_day_night_ratio;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue