1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-15 17:35:37 +02:00

Basic camera control API (#15796)

This commit is contained in:
sfan5
2025-02-19 18:45:45 +01:00
committed by GitHub
parent 50819ace8f
commit ba62808fe8
18 changed files with 162 additions and 42 deletions

View File

@@ -45,6 +45,7 @@ class BanManager;
class Inventory;
class ModChannelMgr;
class RemotePlayer;
class Player;
class PlayerSAO;
struct PlayerHPChangeReason;
class IRollbackManager;
@@ -409,6 +410,7 @@ public:
void SendMovePlayerRel(session_t peer_id, const v3f &added_pos);
void SendPlayerSpeed(session_t peer_id, const v3f &added_vel);
void SendPlayerFov(session_t peer_id);
void SendCamera(session_t peer_id, Player *player);
void SendMinimapModes(session_t peer_id,
std::vector<MinimapMode> &modes,
@@ -546,6 +548,7 @@ private:
void SendCloudParams(session_t peer_id, const CloudParams &params);
void SendOverrideDayNightRatio(session_t peer_id, bool do_override, float ratio);
void SendSetLighting(session_t peer_id, const Lighting &lighting);
void broadcastModChannelMessage(const std::string &channel,
const std::string &message, session_t from_peer);