Browse Source

Update protobuf file

Jean-Baptiste Aubort 5 months ago
parent
commit
d6c362ed34
1 changed files with 16 additions and 0 deletions
  1. 16 0
      messages.proto

+ 16 - 0
messages.proto

@@ -36,6 +36,10 @@ message CharacterLayerMessage {
   string name = 2;
 }
 
+message Companion {
+  string name = 1;
+}
+
 /*********** CLIENT TO SERVER MESSAGES *************/
 
 message PingMessage {
@@ -141,6 +145,7 @@ message UserJoinedMessage {
   string name = 2;
   repeated CharacterLayerMessage characterLayers = 3;
   PositionMessage position = 4;
+  Companion companion = 5;
 }
 
 message UserLeftMessage {
@@ -202,6 +207,13 @@ message WorldFullWarningMessage{
 message WorldFullWarningToRoomMessage{
     string roomId = 1;
 }
+message RefreshRoomPromptMessage{
+    string roomId = 1;
+}
+message RefreshRoomMessage{
+    string roomId = 1;
+    int32 versionNumber = 2;
+}
 
 message WorldFullMessage{
 }
@@ -229,6 +241,7 @@ message ServerToClientMessage {
     AdminRoomMessage adminRoomMessage = 14;
     WorldFullWarningMessage worldFullWarningMessage = 15;
     WorldFullMessage worldFullMessage = 16;
+    RefreshRoomMessage refreshRoomMessage = 17; 
   }
 }
 
@@ -243,6 +256,7 @@ message JoinRoomMessage {
   string roomId = 5;
   repeated string tag = 6;
   string IPAddress = 7;
+  Companion companion = 8;
 }
 
 message UserJoinedZoneMessage {
@@ -251,6 +265,7 @@ message UserJoinedZoneMessage {
   repeated CharacterLayerMessage characterLayers = 3;
   PositionMessage position = 4;
   Zone fromZone = 5;
+  Companion companion = 6;
 }
 
 message UserLeftZoneMessage {
@@ -395,4 +410,5 @@ service RoomManager {
   rpc ban(BanMessage) returns (EmptyMessage);
   rpc sendAdminMessageToRoom(AdminRoomMessage) returns (EmptyMessage);
   rpc sendWorldFullWarningToRoom(WorldFullWarningToRoomMessage) returns (EmptyMessage);
+  rpc sendRefreshRoomPrompt(RefreshRoomPromptMessage) returns (EmptyMessage);
 }