Send state of all players

This commit is contained in:
2024-10-11 21:53:20 +02:00
parent 49af9dec54
commit f16e8647dc
2 changed files with 113 additions and 15 deletions

View File

@ -16,6 +16,12 @@ message Action {
}
message ServerMessage {
int32 player_id = 1;
// Add other fields for server responses
int32 player_id = 1; // Only used when initially assigning player ID
repeated PlayerState players = 2; // Player state updates
}
message PlayerState {
int32 player_id = 1;
int32 x = 2;
int32 y = 3;
}