networking parse command
This commit is contained in:
parent
ef38da703e
commit
eaff023ed3
6 changed files with 14 additions and 56 deletions
|
|
@ -70,7 +70,7 @@ namespace game {
|
|||
return playerId;
|
||||
}
|
||||
|
||||
void State::playerLeft(int playerId)
|
||||
void State::quitPlayer(int playerId)
|
||||
{
|
||||
(void) playerId;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ namespace game {
|
|||
// The upper layer (network/renderer) calling these three functions
|
||||
// should keep id's unique and give one (network) input an id.
|
||||
int addPlayer();
|
||||
void playerLeft(int playerId);
|
||||
void quitPlayer(int playerId);
|
||||
void commandForPlayer(int playerId, Command *cmd);
|
||||
|
||||
// lookup. return nullptr on invalid playerId
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue