Client-side heartbeat is working

This commit is contained in:
Kayne Ruse
2014-09-03 01:21:17 +10:00
parent 5577387d61
commit 06922dc820
3 changed files with 28 additions and 2 deletions
+7
View File
@@ -46,6 +46,8 @@
//STL
#include <map>
#include <chrono>
class InWorld : public BaseScene {
public:
//Public access members
@@ -121,6 +123,11 @@ protected:
//game
Character* localCharacter = nullptr;
//connections
typedef std::chrono::steady_clock Clock;
Clock::time_point lastBeat = Clock::now();
int attemptedBeats = 0;
};
#endif