]> git.localhorst.tv Git - blank.git/blobdiff - src/server/ClientConnection.hpp
give network players a model
[blank.git] / src / server / ClientConnection.hpp
index 2f03e67eca5bea2315b3b24602fa4f825e220ff7..99657de3642d262b70dbdcee5504e32efb66680b 100644 (file)
@@ -16,6 +16,9 @@
 
 
 namespace blank {
+
+class CompositeModel;
+
 namespace server {
 
 class Server;
@@ -52,6 +55,10 @@ public:
        ChunkIndex &PlayerChunks() noexcept { return *player.chunks; }
        const ChunkIndex &PlayerChunks() const noexcept { return *player.chunks; }
 
+       void SetPlayerModel(const CompositeModel &) noexcept;
+       bool HasPlayerModel() const noexcept;
+       const CompositeModel &GetPlayerModel() const noexcept;
+
 private:
        struct SpawnStatus {
                // the entity in question
@@ -89,6 +96,7 @@ private:
        Server &server;
        Connection conn;
        Player player;
+       const CompositeModel *player_model;
        std::list<SpawnStatus> spawns;
        unsigned int confirm_wait;