Added chat service Updated packet service to pass the tcp stream around in a Arc type. Updated character position data to not require multiplying the coords Added more debug logs Added an interceptor for gRPC comms with the chat server Updated build and push script for the chat server changes
27 lines
506 B
Protocol Buffer
27 lines
506 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package chat;
|
|
|
|
import "common.proto";
|
|
|
|
service ChatService {
|
|
rpc ChatStream(stream ChatMessage) returns (stream ChatMessage);
|
|
}
|
|
|
|
enum MessageType {
|
|
MESSAGE_TYPE_UNSPECIFIED = 0;
|
|
MESSAGE_TYPE_NORMAL = 1;
|
|
MESSAGE_TYPE_SHOUT = 2;
|
|
MESSAGE_TYPE_PARTY = 3;
|
|
MESSAGE_TYPE_WHISPER = 4;
|
|
MESSAGE_TYPE_CLAN = 5;
|
|
MESSAGE_TYPE_ALLIED = 6;
|
|
}
|
|
|
|
message ChatMessage {
|
|
string client_id = 1;
|
|
MessageType type = 2;
|
|
string message = 3;
|
|
string target_id = 4;
|
|
}
|