协议完成

This commit is contained in:
aozhiwei 2019-03-12 13:52:44 +08:00
parent 586705cce4
commit 80dcad039a

View File

@ -93,6 +93,283 @@ message MFGoods
optional int32 num = 2;
}
message MFPlug
{
optional string name = 1;
optional int32 id = 2;
optional int32 param = 3;
}
//-
message MFPlayerPart
{
optional MFVector2D pos = 1; //
optional MFVector2D dir = 2; //
}
//-
message MFPlayerFull
{
optional float health = 1; //
optional bool dead = 2; //
optional bool downed = 3; //
optional bool disconnected = 4; //
optional int32 anim_type = 5; //
optional int32 anim_seq = 6; //
optional int32 action_type = 7; //
optional int32 skin = 8; //id
//backpack
optional int32 helmet = 10; //
optional int32 chest = 11; //
optional int32 weapon = 12; //
optional int32 energy_shield = 13; //
optional int32 vip = 14; //vip
optional int32 sdmg = 15;
}
//-
message MFObstaclePart
{
optional MFVector2D pos = 1; //
optional float scale = 3; //
}
//-
message MFObstacleFull
{
optional int32 obstacle_id = 1; //id
optional float health = 2; //
optional bool dead = 3; //
optional bool is_door = 4; //
optional int32 door_relative_ori = 5; //
optional bool door_can_use = 6; //
optional int32 door_seq = 7;
optional bool is_button = 10;
optional bool button_onoff = 11;
optional bool button_can_use = 12;
optional int32 button_seq = 13;
}
//-
message MFBuildingPart
{
optional MFVector2D pos = 1; //
optional int32 building_id = 2; //id
optional int32 ori = 3; //
}
//-
message MFBuildingFull
{
optional int32 building_id = 1; //id
optional MFVector2D pos = 2; //
optional int32 ori = 3;
optional bool ceiling_dead = 4;
}
//loot出生点-
message MFLootSpawnerPart
{
optional int32 loot_id = 1; //id
optional MFVector2D pos = 2; //
}
//loot出生点-
message MFLootSpawnerFull
{
optional int32 loot_id = 1; //id
optional MFVector2D pos = 2; //
}
//loot-
message MFLootPart
{
optional MFVector2D pos = 1; //
}
//loot-
message MFLootFull
{
optional string name = 1;
optional int32 count = 2;
optional int32 age_ms = 3;
}
//-
message MFDeadBodyPart
{
optional MFVector2D pos = 1; //
}
//-
message MFDeadBodyFull
{
optional int32 player_id = 1; //id
optional int32 inkjet = 2;
}
//decal-
message MFDecalPart
{
optional int32 decal_id = 1; //id
optional MFVector2D pos = 2; //
}
//decal-
message MFDecalFull
{
optional int32 decal_id = 1; //id
optional MFVector2D pos = 2; //
}
//-
message MFProjectilePart
{
optional MFVector2D pos = 1; //
optional float pos_z = 2; //
}
//-
message MFProjectileFull
{
optional MFVector2D pos = 1; //
optional float pos_z = 2; //
}
//-
message MFSmokePart
{
optional MFVector2D pos = 1; //
optional float rad = 2; //
}
//-
message MFSmokeFull
{
optional MFVector2D pos = 1; //
optional float rad = 2; //
}
//-
message MFObjectPart
{
//1:player 2:obstacle 3:building 4:lootspawner 5:loot 6:deadbody 7:decal 8:projectile 9:smoke
optional int32 object_type = 1;
optional MFPlayerPart union_obj_1 = 2;
optional MFObstaclePart union_obj_2 = 3;
optional MFBuildingPart union_obj_3 = 4;
optional MFLootSpawnerPart union_obj_4 = 5;
optional MFLootPart union_obj_5 = 6;
optional MFDeadBodyPart union_obj_6 = 7;
optional MFDecalPart union_obj_7 = 8;
optional MFProjectilePart union_obj_8 = 9;
optional MFSmokePart union_obj_9 = 10;
}
//-
message MFObjectFull
{
//1:player 2:obstacle 3:building 4:lootspawner 5:loot 6:deadbody 7:decal 8:projectile 9:smoke
optional int32 object_type = 1;
optional MFPlayerFull union_obj_1 = 2;
optional MFObstacleFull union_obj_2 = 3;
optional MFBuildingFull union_obj_3 = 4;
optional MFLootSpawnerFull union_obj_4 = 5;
optional MFLootFull union_obj_5 = 6;
optional MFDeadBodyFull union_obj_6 = 7;
optional MFDecalFull union_obj_7 = 8;
optional MFProjectileFull union_obj_8 = 9;
optional MFSmokeFull union_obj_9 = 10;
}
//
message MFPlayerData
{
optional float boost = 1;
optional bool has_action = 2;
optional float actoin_time = 3;
optional float action_duration = 4;
optional int32 action_item_id = 5;
optional int32 action_target_id = 6;
optional int32 cur_scope = 10;
repeated int32 inventory = 11;
optional int32 cur_weap_idx = 15;
// repeated int32 weapons = 16;
optional int32 spectator_count = 20;
}
message MFGasData
{
optional int32 mode = 1;
optional float duration = 2;
optional MFVector2D pos_old = 3;
optional MFVector2D pos_new = 4;
optional float rad_old = 5;
optional float rad_new = 6;
}
message MFTeamData
{
optional int32 player_id = 1;
optional MFVector2D pos = 2;
optional MFVector2D dir = 3;
optional float health = 4;
optional bool disconnected = 5;
optional bool dead = 6;
optional bool downed = 7;
}
message MFTeamInfo
{
optional int32 team_id = 1;
repeated int32 player_ids = 2;
}
message MFBullet
{
optional int32 player_id = 1;
optional int32 bullet_id = 2;
optional MFVector2D pos = 3;
optional MFVector2D dir = 4;
optional float variance_t = 5;
optional int32 bullskin = 6;
optional bool crit = 7;
optional int32 reflect_count = 8;
optional int32 reflect_objid = 9;
}
message MFShot
{
optional int32 player_id = 1;
optional int32 weapon_id = 2;
optional bool offhand = 3;
optional int32 bullskin = 4;
}
message MFExplosion
{
optional MFVector2D pos = 1;
optional int32 type = 2;
}
message MFEmote
{
optional int32 type = 1;
optional int32 is_ping = 2;
optional int32 player_id = 3;
optional MFVector2D pos = 4;
optional string msg = 5;
}
//xx
message MFPlayerStats
{
@ -177,7 +454,8 @@ message CMJoin
optional int32 baseskin = 13; //id
optional int32 basemelee = 14; //xx
optional int32 elo_score = 15;
//plugs
repeated MFPlug plugs = 16;
optional string channel = 20; //
optional string gmode = 21;
}
@ -276,6 +554,20 @@ message SMPlayerInfo
message SMUpdate
{
repeated int32 del_objids = 1;
repeated MFObjectFull full_objects = 2;
repeated MFObjectPart part_objects = 3;
optional int32 active_player_id = 10; //id
optional MFPlayerData active_player_data = 11; //
optional int32 alive_count = 15; //
optional int32 gasT = 16;
optional MFGasData gas_data = 17;
repeated MFTeamData team_data = 18;
repeated MFTeamData teams = 19;
repeated MFBullet bullets = 20; //
repeated MFShot shots = 21;
repeated MFExplosion explosions = 22;
repeated MFEmote emotes = 23;
optional int32 ack = 24;
}
//xx