Added logic to go from spectator to player.
This commit is contained in:
@@ -82,6 +82,7 @@ private:
|
||||
bool hasServerTimedOut();
|
||||
EntityID createPlayer();
|
||||
void sendInputCommands();
|
||||
void becomePlayer();
|
||||
// Mapping Logic
|
||||
// Returns if local EntityID exist in map
|
||||
bool clientServerMapsHasEntity(EntityID clientEntityID);
|
||||
|
||||
@@ -13,7 +13,8 @@ enum class MessageType
|
||||
Snapshot,
|
||||
OnInputCommand,
|
||||
OnPlayerDamage,
|
||||
PlayerConnected
|
||||
PlayerConnected,
|
||||
BecomePlayer
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -71,7 +71,7 @@ private:
|
||||
void parseClientPing();
|
||||
void parseServerPing();
|
||||
void identifyPacketLoss();
|
||||
EntityID createPlayer();
|
||||
void createPlayer();
|
||||
int GetPlayerIDFromEndpoint(boost::asio::ip::udp::endpoint endpoint);
|
||||
// Debug event
|
||||
EventRelay<Server, Events::InputCommand> m_EInputCommand;
|
||||
|
||||
Reference in New Issue
Block a user