syntax = "proto3";
package protos;

import "userinfo.proto";
import "result.proto";

message RoomCreateRequest {
}

message RoomCreateResponse {
}

message RoomJoinRequest {
    uint32 RoomID = 1;
    int32 RoomType = 2; // 0 = 游戏
    map<string, bytes> Values = 3;
}

message RoomJoinResponse {
    Result Result = 1;
    uint32 RoomID = 2;
    bool MASTER = 3;
}

message RoomJoinPush {
    UserInfo UserInfo = 1;
}

message RoomLeaveRequest {
}

message RoomLeaveResponse {
    Result Result = 1;
}

message RoomLeavePush {
    uint32 UserID = 1;
}

message RoomDismissPush {

}

message RoomSwitchMasterPush {
    uint32 UserID = 1;
}