mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
set_sky improvements, set_sun, set_moon and set_stars
This commit is contained in:
19
src/server.h
19
src/server.h
@@ -61,6 +61,10 @@ class ServerScripting;
|
||||
class ServerEnvironment;
|
||||
struct SimpleSoundSpec;
|
||||
struct CloudParams;
|
||||
struct SkyboxParams;
|
||||
struct SunParams;
|
||||
struct MoonParams;
|
||||
struct StarParams;
|
||||
class ServerThread;
|
||||
class ServerModManager;
|
||||
|
||||
@@ -307,9 +311,11 @@ public:
|
||||
f32 frame_speed);
|
||||
void setPlayerEyeOffset(RemotePlayer *player, const v3f &first, const v3f &third);
|
||||
|
||||
void setSky(RemotePlayer *player, const video::SColor &bgcolor,
|
||||
const std::string &type, const std::vector<std::string> ¶ms,
|
||||
bool &clouds);
|
||||
void setSky(RemotePlayer *player, const SkyboxParams ¶ms);
|
||||
void setSun(RemotePlayer *player, const SunParams ¶ms);
|
||||
void setMoon(RemotePlayer *player, const MoonParams ¶ms);
|
||||
void setStars(RemotePlayer *player, const StarParams ¶ms);
|
||||
|
||||
void setClouds(RemotePlayer *player, const CloudParams ¶ms);
|
||||
|
||||
bool overrideDayNightRatio(RemotePlayer *player, bool do_override, float brightness);
|
||||
@@ -413,9 +419,10 @@ private:
|
||||
void SendHUDChange(session_t peer_id, u32 id, HudElementStat stat, void *value);
|
||||
void SendHUDSetFlags(session_t peer_id, u32 flags, u32 mask);
|
||||
void SendHUDSetParam(session_t peer_id, u16 param, const std::string &value);
|
||||
void SendSetSky(session_t peer_id, const video::SColor &bgcolor,
|
||||
const std::string &type, const std::vector<std::string> ¶ms,
|
||||
bool &clouds);
|
||||
void SendSetSky(session_t peer_id, const SkyboxParams ¶ms);
|
||||
void SendSetSun(session_t peer_id, const SunParams ¶ms);
|
||||
void SendSetMoon(session_t peer_id, const MoonParams ¶ms);
|
||||
void SendSetStars(session_t peer_id, const StarParams ¶ms);
|
||||
void SendCloudParams(session_t peer_id, const CloudParams ¶ms);
|
||||
void SendOverrideDayNightRatio(session_t peer_id, bool do_override, float ratio);
|
||||
void broadcastModChannelMessage(const std::string &channel,
|
||||
|
Reference in New Issue
Block a user