update to v2

This commit is contained in:
Soph :3 2024-08-27 20:39:18 +03:00
parent 53ca898b13
commit 4842cc268a
Signed by: sophie
GPG key ID: EDA5D222A0C270F2
6 changed files with 310 additions and 272 deletions

View file

@ -1,4 +1,4 @@
// PV version = 0cdf4ec01ef9a5de77ad785183b3f56fcd0b58db
// PV version = 9a65ffd093eefcad972f715896bf35d9d5058a2d
syntax = "proto3";
@ -6,54 +6,52 @@ package pianoverse;
message ClientMessage {
enum EventType {
PING = 0;
ROOM = 1;
PROFILE = 2;
CHAT = 3;
MOVE = 4;
MUTE = 5;
UNMUTE = 6;
KICK = 7;
PRESS = 8;
RELEASE = 9;
SUSTAIN = 10;
HEARTBEAT = 11;
BAN = 12;
CHOWN = 13;
CHOWN = 0;
PING = 1;
ROOM = 2;
PROFILE = 3;
CHAT = 4;
MOVE = 5;
MUTE = 6;
UNMUTE = 7;
KICK = 8;
PRESS = 9;
RELEASE = 10;
SUSTAIN = 11;
HEARTBEAT = 12;
BAN = 13;
IPBAN = 14;
MOD = 15;
UNMOD = 16;
}
EventType event = 1;
Room room = 3;
string chown = 1;
EventType event = 2;
Heartbeat ping = 3;
Room room = 4;
message Room {
string room = 1;
bool private = 2;
}
Profile profile = 5;
string chat = 6;
Move move = 7;
string mute = 8;
string unmute = 9;
string kick = 10;
Press press = 11;
Release release = 12;
bool sustain = 13;
Heartbeat heartbeat = 14;
Ban ban = 15;
string ipban = 16;
string mod = 17;
string unmod = 18;
Profile profile = 4;
string chat = 5;
Move move = 6;
string mute = 7;
string unmute = 8;
string kick = 9;
Press press = 10;
Release release = 11;
bool sustain = 12;
Heartbeat heartbeat = 13;
message Heartbeat {}
Ban ban = 14;
message Ban {
string id = 1;
uint32 minutes = 2;
}
string chown = 15;
}
enum Role {
USER = 0;
@ -62,43 +60,39 @@ enum Role {
}
message ServerMessage {
enum EventType {
PONG = 0;
CHAT = 1;
ROOMS = 2;
WELCOME = 3;
MOVE = 4;
PRESS = 5;
RELEASE = 6;
SUSTAIN = 7;
PROFILE = 8;
JOIN = 9;
LEAVE = 10;
RATELIMIT = 11;
MESSAGE = 12;
CHOWN = 13;
CLEAR = 14;
CLEAR = 0;
PONG = 1;
CHAT = 2;
ROOMS = 3;
WELCOME = 4;
MOVE = 5;
PRESS = 6;
RELEASE = 7;
SUSTAIN = 8;
PROFILE = 9;
JOIN = 10;
LEAVE = 11;
RATELIMIT = 12;
MESSAGE = 13;
CHOWN = 14;
}
EventType event = 1;
Pong pong = 2;
message Pong {}
Chat chat = 3;
Profile clear = 1;
EventType event = 2;
Profile pong = 3;
Chat chat = 4;
message Chat {
string id = 1;
string content = 2;
string name = 3;
string color = 4;
}
repeated Room rooms = 4;
repeated Room rooms = 5;
message Room {
string room = 1;
uint32 count = 2;
}
Welcome welcome = 5;
Welcome welcome = 6;
message Welcome {
string id = 1;
string name = 2;
@ -108,26 +102,21 @@ message ServerMessage {
repeated Chat chat = 6;
Role role = 7;
}
Move move = 7;
Press press = 8;
Release release = 9;
Move move = 6;
Press press = 7;
Release release = 8;
Sustain sustain = 9;
Sustain sustain = 10;
message Sustain {
string id = 1;
bool enabled = 2;
}
Profile profile = 10;
Profile join = 11;
string leave = 12;
int32 rateLimit = 13;
string message = 14;
string chown = 15;
int32 clear = 16;
Profile profile = 11;
Profile join = 12;
string leave = 13;
uint32 ratelimit = 14;
string message = 15;
string chown = 16;
}
message Profile {