Protobuf changes

This commit is contained in:
2025-01-13 00:31:15 +01:00
parent 4f36c2ee1f
commit 4012a2ed92
9 changed files with 150 additions and 59 deletions
+32
View File
@@ -0,0 +1,32 @@
syntax = "proto3";
package actions;
option go_package = "gitea.boner.be/bdnugget/goonserver/actions";
message Action {
enum ActionType {
MOVE = 0;
}
ActionType type = 1;
int32 x = 2;
int32 y = 3;
int32 player_id = 4;
}
message ActionBatch {
int32 player_id = 1;
repeated Action actions = 2;
int64 tick = 3;
}
message PlayerState {
int32 player_id = 1;
int32 x = 2;
int32 y = 3;
}
message ServerMessage {
int32 player_id = 1;
repeated PlayerState players = 2;
int64 current_tick = 3;
}