This commit is contained in:
aozhiwei 2019-03-11 20:18:54 +08:00
parent bc2d8dc12b
commit 0d15b79606
2 changed files with 45 additions and 26 deletions

View File

@ -5,12 +5,27 @@ enum CMMessageId_e
{
_CMPing = 101;
_CMLogin = 103;
_CMJoin = 200;
_CMMove = 201;
_CMEdit = 202;
_CMDropItem = 203;
_CMSendEmote = 204;
_CMSpectate = 205;
_CMSendVoice = 206;
}
enum SMMessageId_e
{
_SMPing = 101;
_SMRpcError = 102;
_SMLogin = 103;
_SMVoiceNotify = 1001;
_SMJoinedNotify = 1002;
_SMPlayerInfo = 1003;
_SMUpdate = 1004;
_SMKillMsg = 1005;
_SMPickup = 1006;
_SMDisconnectNotify = 1007;
}

View File

@ -182,12 +182,6 @@ message CMJoin
optional string gmode = 21;
}
//线
message SMDisconnectNotify
{
optional string reason = 1; //线
}
//
message CMMove
{
@ -243,6 +237,32 @@ message CMSendEmote
//optional bool is_ping = 5;
}
//
message CMSpectate
{
optional int32 spec_next = 1;
optional int32 spec_prev = 2;
}
//
message CMSendVoice
{
optional int32 mode = 1; //
optional string uuid = 2; //id
optional string msg = 3; //
}
//endcmmsg
//
message SMVoiceNotify
{
optional int32 mode = 1; //
optional string uuid = 2; //id
optional string msg = 3; //
}
//
message SMJoinedNotify
{
@ -305,24 +325,8 @@ message SMPickup
optional int32 count = 3;
}
//
message CMSpectate
//线
message SMDisconnectNotify
{
optional int32 spec_next = 1;
optional int32 spec_prev = 2;
}
//
message CMSendVoice
{
optional int32 mode = 1; //
optional string uuid = 2; //id
optional string msg = 3; //
}
message CMVoiceNotify
{
optional int32 mode = 1; //
optional string uuid = 2; //id
optional string msg = 3; //
optional string reason = 1; //线
}