diff options
Diffstat (limited to 'src/core/gameconnection.h')
-rw-r--r-- | src/core/gameconnection.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/gameconnection.h b/src/core/gameconnection.h index 95df9f3..70e3015 100644 --- a/src/core/gameconnection.h +++ b/src/core/gameconnection.h @@ -32,12 +32,12 @@ public: inline bool interactive() const { return true; } /// return the current game time - inline float time() const { return game_clientframetime; } + inline unsigned long timestamp() const { return connection_timestamp; } /*----- mutators -------------------------------------------------- */ /// run a game connection time frame - void frame(float seconds); + void frame(unsigned long timestamp); /// forward a command line to the remote server void forward(std::string const &cmdline); @@ -59,10 +59,11 @@ protected: private: bool connection_running; - static GameConnection *connection_instance; + unsigned long connection_timestamp; // server game time + unsigned long connection_netframe; // last network frame timestamp + NetConnection *connection_network; - float connection_frametime; - + static GameConnection *connection_instance; }; inline GameConnection *connection() { return GameConnection::instance(); } |