RemotePlayer

This commit is contained in:
MarcEricMartel
2023-10-27 14:37:53 -04:00
parent 8970bc33a1
commit 61629b3c8e
6 changed files with 30 additions and 11 deletions

View File

@@ -14,6 +14,8 @@ public:
int Connect(const char* srv_addr, std::string name);
uint64_t getId() const;
unsigned int getSeed() const;
netprot::Sync getOrigin() const;
//void SendInput();
//int Sync();
@@ -24,16 +26,17 @@ public:
// void updateRemotePlayers(std::map<RemotePlayers> rplayers);
std::map<uint64_t, netprot::PlayerInfo> m_players;
private:
#ifdef _WIN32
WSADATA m_wsaData;
#endif
std::map<Timestamp, netprot::Input> m_inputmanifest;
std::map<uint64_t, netprot::PlayerInfo> m_players;
std::map<uint64_t, netprot::TeamInfo> m_teams;
netprot::LoginInfo m_loginfo;
netprot::GameInfo m_gameinfo;
netprot::Sync m_origin;
};
#endif