- update: made changes for new proto paths - add: skills to character table - add: load and send skills to client from db - add: chat proto
26 lines
465 B
Protocol Buffer
26 lines
465 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package chat;
|
|
|
|
import "common.proto";
|
|
|
|
service ChatService {
|
|
rpc SendMessage(ChatMessage) returns (common.Empty);
|
|
}
|
|
|
|
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 {
|
|
MessageType type = 1;
|
|
string message = 2;
|
|
string target = 3;
|
|
}
|