Implement chat
This commit is contained in:
@ -7,12 +7,14 @@ option go_package = "gitea.boner.be/bdnugget/goonserver/actions";
|
||||
message Action {
|
||||
enum ActionType {
|
||||
MOVE = 0;
|
||||
CHAT = 1;
|
||||
}
|
||||
|
||||
ActionType type = 1;
|
||||
int32 x = 2;
|
||||
int32 y = 3;
|
||||
int32 player_id = 4;
|
||||
string chat_message = 5;
|
||||
}
|
||||
|
||||
message ActionBatch {
|
||||
@ -27,8 +29,15 @@ message PlayerState {
|
||||
int32 y = 3;
|
||||
}
|
||||
|
||||
message ChatMessage {
|
||||
int32 player_id = 1;
|
||||
string content = 2;
|
||||
int64 timestamp = 3;
|
||||
}
|
||||
|
||||
message ServerMessage {
|
||||
int32 player_id = 1;
|
||||
repeated PlayerState players = 2;
|
||||
int64 current_tick = 3;
|
||||
repeated ChatMessage chat_messages = 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user