Files
osirose-new/proto/chat.proto
raven aa2be43f4e Refactor
Updated handlers by spliting the TcpStream in half to allow reading and writing data at the same time.
This fixes an issue where you are unable to get chat messages until the client sends a packet to the server

Fixed client id's by adding the id manager
Added shout chat handling
2025-06-07 00:36:02 -04:00

28 lines
529 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;
string sender = 5;
}