diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-06-13 13:19:01 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-06-13 13:19:01 +0200 |
commit | 7add4dd07e17c5a6ba0a2a1d9700d72055b812ae (patch) | |
tree | 89039bf48199321f6c2f75958626b2e978322a6f /connection.h | |
parent | 7ff743b857f867180f5c766f0370bde9237932ff (diff) |
Send players and updated positions to other players.
Diffstat (limited to 'connection.h')
-rw-r--r-- | connection.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/connection.h b/connection.h index 78603e4..cba5031 100644 --- a/connection.h +++ b/connection.h @@ -10,6 +10,8 @@ class Connection { private: + static uint32_t next_id; + uint32_t id; boost::asio::io_service& io_service; public: @@ -25,6 +27,7 @@ class Connection { /* data */ Vector3 pos; std::set<std::pair<int64_t, int64_t> > chunk_indices; + uint32_t get_id(); }; #endif |