123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- syntax = "proto3";
- // 多人副本
- package MultiDup;
-
- //
- // 进入大厅(注册下自己的uid)
- message CS_MD_EnterLobby{
- int32 Zoneid = 1;
- string Uid = 2;
- }
- // 多人副本, 创建房间
- message CS_MD_CreateRoom {
- int32 Zoneid=1; // zoneid
- string Uid=2; // 玩家id
- int32 Mapid=3; // 地图id
- }
- // 多人副本, 申请房间(列表)
- message CS_MD_GetRoomList {
- int32 Zoneid=1;
- string Uid =2;
-
- }
- // 多人副本, 加入房间
- message CS_MD_EnterRoom {
- int32 Zoneid=1;
- string Uid =2;
- int32 RoomId=3; // 房间id
- }
- // 多人副本, 离开房间
- message CS_MD_LeaveRoom {
- int32 Zoneid=1;
- string Uid =2;
- //int32 RoomId=3; // 房间id (理论上已经处于房间中不需要此字段)
- }
- // 多人副本, 开始游戏(创建者)
- message CS_MD_BeginDup {
- int32 Zoneid=1;
- string Uid =2;
- //int32 RoomId=3; // 房间id (理论上已经处于房间中不需要此字段)
- }
- //
- // 加入房间成功
- message SC_MD_EnterLobby{
-
- }
- // 多人副本, 创建房间
- message SC_MD_CreateRoom {
- int32 Zoneid=1;
- string Uid =2;
- int32 Mapid=3;
- int32 RoomId=4; // 房间id (服务端分配)
-
- }
- // 多人副本, 申请房间(列表)
- message SC_MD_GetRoomList {
- message RoomInfo{
- int32 RoomId=1;
- int32 Mapid=2;
- repeated string PlayerUids=3; //??
- string Battleserver =4;
- int32 BattleServerPort =5;
- }
- repeated RoomInfo RoomInfos=1;
- }
- // 多人副本, 加入房间
- message SC_MD_EnterRoom {
- int32 Zoneid=1;
- string Uid =2; // (新进id)
- int32 Mapid=3;
- string Ip=4; // 战斗服务器ip
- int32 Port=5; // 战斗服务器端口
- repeated string PlayerUids=6;
- }
- // 多人副本, 离开房间
- message SC_MD_LeaveRoom {
- int32 Zoneid=1;
- string Uid =2; // (离开id)
- }
- // 多人副本, 开始游戏(创建者)
- message SC_MD_BeginDup {
-
- }
- // 多人副本在战斗服创建房间
- message SS_CreateBattleServer{
- int32 RoomId=1;
- repeated string PlayerUids=2;
- }
- // 多人副本,创建战斗房间OK
- message SS_CreateBattleServerOK{
-
- }
|