This commit is contained in:
aozhiwei 2022-12-23 08:24:05 +08:00
parent 1c29803576
commit bbcca3e108
23 changed files with 290 additions and 121 deletions

View File

@ -0,0 +1,10 @@
#include "precompile.h"
#include "mt/Attr.h"
IMPL_TABLE(mt::Attr)
namespace mt
{
}

View File

@ -0,0 +1,16 @@
#pragma once
#include "mt/macro.h"
#include "mtb/Attr.h"
namespace mt
{
DECLARE_ID_TABLE(Attr, mtb::Attr,
"attr@attr.csv",
"attr_id")
public:
};
}

View File

@ -0,0 +1,10 @@
#include "precompile.h"
#include "mt/FormulaPvp.h"
IMPL_TABLE(mt::FormulaPvp)
namespace mt
{
}

View File

@ -0,0 +1,16 @@
#pragma once
#include "mt/macro.h"
#include "mtb/FormulaPvp.h"
namespace mt
{
DECLARE_AUTO_ID_TABLE(FormulaPvp, mtb::FormulaPvp,
"formulaPvp@formulaPvp.csv",
"")
public:
};
}

View File

@ -5,4 +5,14 @@ namespace mt
class Param;
class Hero;
class Map;
class Attr;
class FormulaPvp;
class GunQuality;
class GunTalentGrow;
class HeroQuality;
class MapTplThingJson;
class PveGemini;
class PveGeminiContent;
class PveGeminiMode;
class Text;
}

View File

@ -0,0 +1,10 @@
#include "precompile.h"
#include "mt/GunQuality.h"
IMPL_TABLE(mt::GunQuality)
namespace mt
{
}

View File

@ -0,0 +1,16 @@
#pragma once
#include "mt/macro.h"
#include "mtb/GunQuality.h"
namespace mt
{
DECLARE_ID_TABLE(GunQuality, mtb::GunQuality,
"gunQuality@gunQuality",
"id")
public:
};
}

View File

@ -0,0 +1,10 @@
#include "precompile.h"
#include "mt/GunTalentGrow.h"
IMPL_TABLE(mt::GunTalentGrow)
namespace mt
{
}

View File

@ -0,0 +1,16 @@
#pragma once
#include "mt/macro.h"
#include "mtb/GunTalentGrow.h"
namespace mt
{
DECLARE_ID_TABLE(GunTalentGrow, mtb::GunTalentGrow,
"gunTalentGrow@gunTalentGrow",
"id")
public:
};
}

View File

@ -0,0 +1,10 @@
#include "precompile.h"
#include "mt/HeroQuality.h"
IMPL_TABLE(mt::HeroQualiy)
namespace mt
{
}

View File

@ -0,0 +1,16 @@
#pragma once
#include "mt/macro.h"
#include "mtb/HeroQuality.h"
namespace mt
{
DECLARE_ID_TABLE(HeroQuality, mtb::HeroQuality,
"heroQuality@heroQuality",
"id")
public:
};
}

View File

@ -0,0 +1,10 @@
#include "precompile.h"
#include "mt/MapTplThingJson.h"
IMPL_TABLE(mt::MapTplThingJson)
namespace mt
{
}

View File

@ -0,0 +1,16 @@
#pragma once
#include "mt/macro.h"
#include "mtb/MapTplThingJson.h"
namespace mt
{
DECLARE_AUTO_ID_TABLE(MapTplThingJson, mtb::MapTplThingJson,
"",
"")
public:
};
}

View File

@ -4,6 +4,16 @@
#include "mt/Param.h"
#include "mt/Map.h"
#include "mt/Hero.h"
#include "mt/Attr.h"
#include "mt/FormulaPvp.h"
#include "mt/GunQuality.h"
#include "mt/GunTalentGrow.h"
#include "mt/HeroQuality.h"
#include "mt/MapTplThingJson.h"
#include "mt/PveGemini.h"
#include "mt/PveGeminiContent.h"
#include "mt/PveGeminiMode.h"
#include "mt/Text.h"
#include "app.h"
@ -33,6 +43,16 @@ namespace mt
RegMetaTable<Param>(res_path_);
RegMetaTable<Hero>(res_path_);
RegMetaTable<Map>(res_path_);
RegMetaTable<Attr>(res_path_);
RegMetaTable<FormulaPvp>(res_path_);
RegMetaTable<GunQuality>(res_path_);
RegMetaTable<GunTalentGrow>(res_path_);
RegMetaTable<HeroQuality>(res_path_);
RegMetaTable<MapTplThingJson>(res_path_);
RegMetaTable<PveGemini>(res_path_);
RegMetaTable<PveGeminiContent>(res_path_);
RegMetaTable<PveGeminiMode>(res_path_);
RegMetaTable<Text>(res_path_);
{
for (auto& itr : meta_tables) {
itr->static_pre_init_cb();

View File

@ -0,0 +1,10 @@
#include "precompile.h"
#include "mt/PveGemini.h"
IMPL_TABLE(mt::PveGemini)
namespace mt
{
}

View File

@ -0,0 +1,16 @@
#pragma once
#include "mt/macro.h"
#include "mtb/PveGemini.h"
namespace mt
{
DECLARE_ID_TABLE(PveGemini, mtb::PveGemini,
"pveGemini@pveGemini.csv",
"gemini_id")
public:
};
}

View File

@ -0,0 +1,10 @@
#include "precompile.h"
#include "mt/PveGeminiContent.h"
IMPL_TABLE(mt::PveGeminiContent)
namespace mt
{
}

View File

@ -0,0 +1,16 @@
#pragma once
#include "mt/macro.h"
#include "mtb/PveGeminiContent.h"
namespace mt
{
DECLARE_ID_TABLE(PveGeminiContent, mtb::PveGeminiContent,
"pveGeminiContent@pveGeminiContent.csv",
"id")
public:
};
}

View File

@ -0,0 +1,10 @@
#include "precompile.h"
#include "mt/PveGeminiMode.h"
IMPL_TABLE(mt::PveGeminiMode)
namespace mt
{
}

View File

@ -0,0 +1,16 @@
#pragma once
#include "mt/macro.h"
#include "mtb/PveGeminiMode.h"
namespace mt
{
DECLARE_ID_TABLE(PveGeminiMode, mtb::PveGeminiMode,
"pveGeminiMode@pveGeminiMode.csv",
"id")
public:
};
}

View File

@ -0,0 +1,10 @@
#include "precompile.h"
#include "mt/Text.h"
IMPL_TABLE(mt::Text)
namespace mt
{
}

View File

@ -0,0 +1,16 @@
#pragma once
#include "mt/macro.h"
#include "mtb/Text.h"
namespace mt
{
DECLARE_NAME_TABLE(Text, mtb::TEXT,
"text@text.csv",
"textid")
public:
};
}

View File

@ -1,34 +1,5 @@
package metatable;
message Attr
{
required int32 attr_id = 1;
required string attr_cname = 2;
required string attr_ename = 3;
}
message Map
{
optional int32 map_id = 1; //id
optional string template_list = 2; //
optional string map_name = 3; //
optional float map_width = 4;
optional float map_height = 5;
optional string airdrops = 6;
optional int32 terminator_airdrop = 7;
optional int32 player = 8;
optional string refresh_robot = 9;
optional int32 map_mode = 10;
optional string safearea = 11;
optional string game_start_buff_list = 12;
optional string map_pic = 13;
optional string first_safearea_center = 14;
optional int32 init_gas_ring = 15;
optional string airraids = 16;
optional string car_num_limit = 17;
optional float scale = 18;
}
message MapThing
{
optional int32 thing_id = 1; //id
@ -408,95 +379,3 @@ message AI
optional string param5 = 19;
optional int32 peace_time = 20;
}
message Text
{
optional string textid = 1;
optional string text = 2;
}
message GunTalentGrow
{
optional int32 id = 1;
optional int32 talent_id = 2;
optional int32 talent_lv = 3;
optional int32 addtype = 4;
optional string addattr = 5;
}
message HeroQuality
{
optional int32 id = 1;
optional int32 quality = 2;
optional int32 gold_limit = 3;
optional int32 lucky = 4;
}
message GunQuality
{
optional int32 id = 1;
optional int32 quality = 2;
optional int32 gold_limit = 3;
optional int32 lucky = 4;
}
message FormulaPvp
{
optional float top = 1;
optional float ranked_topx = 2;
optional float kills_topx = 3;
optional float hero_topx = 4;
optional float weapon_topx = 5;
optional float survival_topx = 6;
}
message PveGemini
{
optional int32 gemini_id = 1;
optional int32 gemini_lv = 2;
optional int32 gemini_limit = 3;
optional string multiplayer_enemy_hp_mul = 4;
}
message PveGeminiContent
{
optional int32 id = 1;
optional int32 mode_id = 2;
optional int32 round = 3;
optional string spawn_point = 4;
optional string enemy_id = 5;
}
message PveGeminiMode
{
optional int32 id = 1;
optional int32 map_id = 2;
optional string mode_time = 3;
optional string area = 4;
optional string score_reward = 5;
optional string round_score = 7;
optional string next_door = 6;
optional int32 wave_prepare_time = 8;
}
message RankRoom
{
optional int32 id = 1;
optional int32 elo_min = 2;
optional int32 elo_max = 3;
optional int32 elo_expansion1 = 4;
optional int32 elo_expansion2 = 5;
optional int32 expand_time1 = 6;
optional int32 expand_time2 = 7;
optional int32 player_num_standard = 8;
optional int32 final_time = 9;
optional int32 final_player_num = 10;
}
//end
message MapTplThingJson
{
}