This commit is contained in:
aozhiwei 2019-07-13 16:01:31 +08:00
parent 791039a6e5
commit e9a3169c95
3 changed files with 25 additions and 3 deletions

View File

@ -22,7 +22,6 @@ class Player : public Human
public:
int team_mode = 0;
int player_count = 0;
bool auto_fill = false;
bool use_touch = false;
long long create_tick = 0;

View File

@ -47,7 +47,6 @@ Player* PlayerMgr::CreatePlayerByCMJoin(long ip_saddr, int socket, const cs::CMJ
hum->health = 0;
hum->team_uuid = msg.team_uuid();
hum->team_mode = msg.team_mode();
hum->player_count = msg.player_count();
hum->auto_fill = msg.auto_fill();
hum->use_touch = msg.use_touch();
hum->avatar_url = msg.avatar_url();

View File

@ -47,6 +47,12 @@ package cs;
protobuf反射得到字段名和字段id的对应关系做到自动化判断
*/
//
enum Constant_e
{
ProtoVersion = 2019071501; //
}
//
message CMPing
{
@ -88,6 +94,23 @@ message MFVector2D
optional float y = 2; //y轴
}
//
/*
property_type: 1
property_type: 2
property_type: 3
property_subtype:
property_type: 4 cd时间
property_type: 5 cd时间
*/
message MFPropertyChg
{
optional int32 obj_id = 1; //id
optional int32 property_type = 2; //
optional int32 property_subtype = 3; //
optional float value = 4; //
}
//
message MFMapObject
{
@ -586,7 +609,7 @@ message CMJoin
optional string team_uuid = 2; //id ()
optional string account_id = 3; //id account_id
optional int32 team_mode = 4; // 0: 1:
optional int32 player_count = 5; //(1)
optional int32 proto_version = 5; //Constant_e.ProtoVersion
optional bool auto_fill = 6; //
optional int32 bot = 7; //
optional string name = 8; //
@ -730,6 +753,7 @@ message SMUpdate
repeated MFEmote emotes = 23; //
optional MFAirDrop airdrop = 26; //
optional MFPlane plane = 27; //
repeated MFPropertyChg chged_property_list = 31; //property变更列表
}
//