attempt to fix ghost player issue

This commit is contained in:
Lion Kortlepel
2021-02-17 12:51:57 +01:00
committed by Anonymous275
parent 13f8be5d39
commit e04a569e33
8 changed files with 37 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include <chrono>
#include <memory>
#include <string>
#include <unordered_set>
@@ -45,6 +46,8 @@ public:
void SetIsSynced(bool NewIsSynced) { mIsSynced = NewIsSynced; }
void SetIsConnected(bool NewIsConnected) { mIsConnected = NewIsConnected; }
TServer& Server() const;
void UpdatePingTime();
int SecondsSinceLastPing();
private:
TServer& mServer;
@@ -59,4 +62,5 @@ private:
std::string mDID;
int mStatus = 0;
int mID = -1;
std::chrono::time_point<std::chrono::high_resolution_clock> mLastPingTime;
};