diff options
author | Jordach <jordach.snelling@gmail.com> | 2019-08-21 21:47:45 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-03-05 20:12:19 +0100 |
commit | 946c03c69bfdde7dc91295692479f8e81bdf79e9 (patch) | |
tree | 0ee299c2fc1d424bdbe7bd03964c2ced47bf9b7e /src/remoteplayer.h | |
parent | 580e7e8eb902ae2faed36b4982e7e751e35f5201 (diff) | |
download | minetest-946c03c69bfdde7dc91295692479f8e81bdf79e9.tar.gz minetest-946c03c69bfdde7dc91295692479f8e81bdf79e9.tar.bz2 minetest-946c03c69bfdde7dc91295692479f8e81bdf79e9.zip |
set_sky improvements, set_sun, set_moon and set_stars
Diffstat (limited to 'src/remoteplayer.h')
-rw-r--r-- | src/remoteplayer.h | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/src/remoteplayer.h b/src/remoteplayer.h index 831bfe956..42e1b5f5b 100644 --- a/src/remoteplayer.h +++ b/src/remoteplayer.h @@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "player.h" #include "cloudparams.h" +#include "skyparams.h" class PlayerSAO; @@ -83,23 +84,21 @@ public: return hud_hotbar_selected_image; } - void setSky(const video::SColor &bgcolor, const std::string &type, - const std::vector<std::string> ¶ms, bool &clouds) - { - m_sky_bgcolor = bgcolor; - m_sky_type = type; - m_sky_params = params; - m_sky_clouds = clouds; - } + void setSky(const SkyboxParams &skybox_params) { m_skybox_params = skybox_params; } - void getSky(video::SColor *bgcolor, std::string *type, - std::vector<std::string> *params, bool *clouds) - { - *bgcolor = m_sky_bgcolor; - *type = m_sky_type; - *params = m_sky_params; - *clouds = m_sky_clouds; - } + const SkyboxParams &getSkyParams() const { return m_skybox_params; } + + void setSun(const SunParams &sun_params) { m_sun_params = sun_params; } + + const SunParams &getSunParams() const { return m_sun_params; } + + void setMoon(const MoonParams &moon_params) { m_moon_params = moon_params; } + + const MoonParams &getMoonParams() const { return m_moon_params; } + + void setStars(const StarParams &star_params) { m_star_params = star_params; } + + const StarParams &getStarParams() const { return m_star_params; } void setCloudParams(const CloudParams &cloud_params) { @@ -164,12 +163,12 @@ private: std::string hud_hotbar_image = ""; std::string hud_hotbar_selected_image = ""; - std::string m_sky_type; - video::SColor m_sky_bgcolor; - std::vector<std::string> m_sky_params; - bool m_sky_clouds; - CloudParams m_cloud_params; + SkyboxParams m_skybox_params; + SunParams m_sun_params; + MoonParams m_moon_params; + StarParams m_star_params; + session_t m_peer_id = PEER_ID_INEXISTENT; }; |