diff options
author | Perttu Ahola <celeron55@gmail.com> | 2013-10-18 11:53:19 +0300 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-02-01 18:38:21 +0100 |
commit | 6a3fa9df12d5982f84e83e1c61ff757edc1043f4 (patch) | |
tree | 074930c80821663e70101f8fafc0a4c46c9d9a3b /src/server.h | |
parent | 86a6cca3cf641fc2c88184ad26d2be3d7e7460f7 (diff) | |
download | dragonfireclient-6a3fa9df12d5982f84e83e1c61ff757edc1043f4.tar.xz |
Add player:override_day_night_ratio() for arbitrarily controlling sunlight brightness
Diffstat (limited to 'src/server.h')
-rw-r--r-- | src/server.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h index e493c5ea9..21e9c811c 100644 --- a/src/server.h +++ b/src/server.h @@ -322,6 +322,9 @@ public: bool setSky(Player *player, const video::SColor &bgcolor, const std::string &type, const std::vector<std::string> ¶ms); + + bool overrideDayNightRatio(Player *player, bool do_override, + float brightness); /* con::PeerHandler implementation. */ void peerAdded(con::Peer *peer); @@ -360,6 +363,7 @@ private: void SendHUDSetParam(u16 peer_id, u16 param, const std::string &value); void SendSetSky(u16 peer_id, const video::SColor &bgcolor, const std::string &type, const std::vector<std::string> ¶ms); + void SendOverrideDayNightRatio(u16 peer_id, bool do_override, float ratio); /* Send a node removal/addition event to all clients except ignore_id. |