28 lines
501 B
Protocol Buffer
28 lines
501 B
Protocol Buffer
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 ServerMessage {
|
|
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;
|
|
}
|