This commit is contained in:
aozhiwei 2022-12-23 09:44:23 +08:00
parent 758a9ee810
commit 43f2302b0f
19 changed files with 15 additions and 55 deletions

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@ -23,4 +23,9 @@ namespace mt
class KillPoint;
class AI;
class Robot;
class AirLine;
class AirRaid;
class Dress;
class Drop;
class NpcStandard;
}

View File

View File

View File

@ -21,6 +21,11 @@
#include "mt/KillPoint.h"
#include "mt/AI.h"
#include "mt/Robot.h"
#include "mt/AirLine.h"
#include "mt/AirRaid.h"
#include "mt/Dress.h"
#include "mt/Drop.h"
#include "mt/NpcStandard.h"
#include "app.h"
@ -67,6 +72,11 @@ namespace mt
RegMetaTable<KillReward>(res_path_);
RegMetaTable<AI>(res_path_);
RegMetaTable<Robot>(res_path_);
RegMetaTable<AirLine>(res_path_);
RegMetaTable<AirRaid>(res_path_);
RegMetaTable<Dress>(res_path_);
RegMetaTable<Drop>(res_path_);
RegMetaTable<NpcStandard>(res_path_);
{
for (auto& itr : meta_tables) {
itr->static_pre_init_cb();

View File

View File

View File

View File

View File

@ -227,15 +227,6 @@ message SkillNumber
optional int32 explosion_effect = 13;
}
message NpcStandard
{
required int32 id = 1;
optional int32 quality = 2;
optional int32 hp = 3;
optional int32 damage = 4;
optional int32 defence = 5;
}
message Buff
{
required int32 buff_id = 1;
@ -270,49 +261,3 @@ message Buff
optional int32 disable_shot = 32;
optional int32 disable_useskill = 33;
}
message Drop
{
optional int32 drop_id = 1;
optional string item_id = 2;
optional string num = 3;
optional string weight = 4;
optional int32 type = 5;
}
message AirDrop
{
optional int32 id = 1;
optional int32 time = 2;
optional int32 appear_time = 3;
optional string drop_id = 4;
}
message AirRaid
{
optional int32 id = 1;
optional int32 time = 2;
optional int32 appear_time = 3;
optional string bomb_id = 4;
optional string raid_wave = 5;
optional float rad = 6;
}
message AirLine
{
optional int32 id = 1;
optional string start_point = 2;
optional string end_point = 3;
optional float plane_speed = 4;
optional int32 weight = 5;
optional int32 map_id = 6;
}
message Dress
{
optional int32 id = 1;
optional int32 level = 2;
optional int32 skill_id = 3;
optional string attr_type = 4;
optional int32 max_lv = 5;
}