Update protocol buffers with tick synchronization

This commit is contained in:
2025-01-13 00:38:52 +01:00
parent f91f72c05d
commit 8290131998
2 changed files with 125 additions and 39 deletions

View File

@ -15,9 +15,10 @@ message Action {
int32 player_id = 4;
}
message ServerMessage {
int32 player_id = 1; // Only used when initially assigning player ID
repeated PlayerState players = 2; // Player state updates
message ActionBatch {
int32 player_id = 1;
repeated Action actions = 2;
int64 tick = 3;
}
message PlayerState {
@ -25,3 +26,9 @@ message PlayerState {
int32 x = 2;
int32 y = 3;
}
message ServerMessage {
int32 player_id = 1;
repeated PlayerState players = 2;
int64 current_tick = 3;
}