From 7add4dd07e17c5a6ba0a2a1d9700d72055b812ae Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 13 Jun 2011 13:19:01 +0200 Subject: Send players and updated positions to other players. --- connection.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'connection.h') 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 > chunk_indices; + uint32_t get_id(); }; #endif -- cgit v1.2.3