diff --git a/server/gameserver/mt/Attr.cc b/server/gameserver/mt/Attr.cc new file mode 100644 index 00000000..94616d6f --- /dev/null +++ b/server/gameserver/mt/Attr.cc @@ -0,0 +1,10 @@ +#include "precompile.h" + +#include "mt/Attr.h" + +IMPL_TABLE(mt::Attr) + +namespace mt +{ + +} diff --git a/server/gameserver/mt/Attr.h b/server/gameserver/mt/Attr.h new file mode 100644 index 00000000..1c49f401 --- /dev/null +++ b/server/gameserver/mt/Attr.h @@ -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: + + }; + +} diff --git a/server/gameserver/mt/FormulaPvp.cc b/server/gameserver/mt/FormulaPvp.cc new file mode 100644 index 00000000..25ef2af1 --- /dev/null +++ b/server/gameserver/mt/FormulaPvp.cc @@ -0,0 +1,10 @@ +#include "precompile.h" + +#include "mt/FormulaPvp.h" + +IMPL_TABLE(mt::FormulaPvp) + +namespace mt +{ + +} diff --git a/server/gameserver/mt/FormulaPvp.h b/server/gameserver/mt/FormulaPvp.h new file mode 100644 index 00000000..e9f63d02 --- /dev/null +++ b/server/gameserver/mt/FormulaPvp.h @@ -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: + + }; + +} diff --git a/server/gameserver/mt/Forward.h b/server/gameserver/mt/Forward.h index 495581fc..c8dc5e3d 100644 --- a/server/gameserver/mt/Forward.h +++ b/server/gameserver/mt/Forward.h @@ -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; } diff --git a/server/gameserver/mt/GunQuality.cc b/server/gameserver/mt/GunQuality.cc new file mode 100644 index 00000000..cb6f951f --- /dev/null +++ b/server/gameserver/mt/GunQuality.cc @@ -0,0 +1,10 @@ +#include "precompile.h" + +#include "mt/GunQuality.h" + +IMPL_TABLE(mt::GunQuality) + +namespace mt +{ + +} diff --git a/server/gameserver/mt/GunQuality.h b/server/gameserver/mt/GunQuality.h new file mode 100644 index 00000000..29891805 --- /dev/null +++ b/server/gameserver/mt/GunQuality.h @@ -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: + + }; + +} diff --git a/server/gameserver/mt/GunTalentGrow.cc b/server/gameserver/mt/GunTalentGrow.cc new file mode 100644 index 00000000..db7c4847 --- /dev/null +++ b/server/gameserver/mt/GunTalentGrow.cc @@ -0,0 +1,10 @@ +#include "precompile.h" + +#include "mt/GunTalentGrow.h" + +IMPL_TABLE(mt::GunTalentGrow) + +namespace mt +{ + +} diff --git a/server/gameserver/mt/GunTalentGrow.h b/server/gameserver/mt/GunTalentGrow.h new file mode 100644 index 00000000..0c2802be --- /dev/null +++ b/server/gameserver/mt/GunTalentGrow.h @@ -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: + + }; + +} diff --git a/server/gameserver/mt/HeroQuality.cc b/server/gameserver/mt/HeroQuality.cc new file mode 100644 index 00000000..2a13c438 --- /dev/null +++ b/server/gameserver/mt/HeroQuality.cc @@ -0,0 +1,10 @@ +#include "precompile.h" + +#include "mt/HeroQuality.h" + +IMPL_TABLE(mt::HeroQualiy) + +namespace mt +{ + +} diff --git a/server/gameserver/mt/HeroQuality.h b/server/gameserver/mt/HeroQuality.h new file mode 100644 index 00000000..cb2cea7a --- /dev/null +++ b/server/gameserver/mt/HeroQuality.h @@ -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: + + }; + +} diff --git a/server/gameserver/mt/MapTplThingJson.cc b/server/gameserver/mt/MapTplThingJson.cc new file mode 100644 index 00000000..683a7858 --- /dev/null +++ b/server/gameserver/mt/MapTplThingJson.cc @@ -0,0 +1,10 @@ +#include "precompile.h" + +#include "mt/MapTplThingJson.h" + +IMPL_TABLE(mt::MapTplThingJson) + +namespace mt +{ + +} diff --git a/server/gameserver/mt/MapTplThingJson.h b/server/gameserver/mt/MapTplThingJson.h new file mode 100644 index 00000000..1e7a0fa1 --- /dev/null +++ b/server/gameserver/mt/MapTplThingJson.h @@ -0,0 +1,16 @@ +#pragma once + +#include "mt/macro.h" +#include "mtb/MapTplThingJson.h" + +namespace mt +{ + + DECLARE_AUTO_ID_TABLE(MapTplThingJson, mtb::MapTplThingJson, + "", + "") + public: + + }; + +} diff --git a/server/gameserver/mt/MetaMgr.cc b/server/gameserver/mt/MetaMgr.cc index 4b036987..6692a9d0 100644 --- a/server/gameserver/mt/MetaMgr.cc +++ b/server/gameserver/mt/MetaMgr.cc @@ -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(res_path_); RegMetaTable(res_path_); RegMetaTable(res_path_); + RegMetaTable(res_path_); + RegMetaTable(res_path_); + RegMetaTable(res_path_); + RegMetaTable(res_path_); + RegMetaTable(res_path_); + RegMetaTable(res_path_); + RegMetaTable(res_path_); + RegMetaTable(res_path_); + RegMetaTable(res_path_); + RegMetaTable(res_path_); { for (auto& itr : meta_tables) { itr->static_pre_init_cb(); diff --git a/server/gameserver/mt/PveGemini.cc b/server/gameserver/mt/PveGemini.cc new file mode 100644 index 00000000..a7098455 --- /dev/null +++ b/server/gameserver/mt/PveGemini.cc @@ -0,0 +1,10 @@ +#include "precompile.h" + +#include "mt/PveGemini.h" + +IMPL_TABLE(mt::PveGemini) + +namespace mt +{ + +} diff --git a/server/gameserver/mt/PveGemini.h b/server/gameserver/mt/PveGemini.h new file mode 100644 index 00000000..2400c329 --- /dev/null +++ b/server/gameserver/mt/PveGemini.h @@ -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: + + }; + +} diff --git a/server/gameserver/mt/PveGeminiContent.cc b/server/gameserver/mt/PveGeminiContent.cc new file mode 100644 index 00000000..78c7000b --- /dev/null +++ b/server/gameserver/mt/PveGeminiContent.cc @@ -0,0 +1,10 @@ +#include "precompile.h" + +#include "mt/PveGeminiContent.h" + +IMPL_TABLE(mt::PveGeminiContent) + +namespace mt +{ + +} diff --git a/server/gameserver/mt/PveGeminiContent.h b/server/gameserver/mt/PveGeminiContent.h new file mode 100644 index 00000000..c1533e43 --- /dev/null +++ b/server/gameserver/mt/PveGeminiContent.h @@ -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: + + }; + +} diff --git a/server/gameserver/mt/PveGeminiMode.cc b/server/gameserver/mt/PveGeminiMode.cc new file mode 100644 index 00000000..54050b17 --- /dev/null +++ b/server/gameserver/mt/PveGeminiMode.cc @@ -0,0 +1,10 @@ +#include "precompile.h" + +#include "mt/PveGeminiMode.h" + +IMPL_TABLE(mt::PveGeminiMode) + +namespace mt +{ + +} diff --git a/server/gameserver/mt/PveGeminiMode.h b/server/gameserver/mt/PveGeminiMode.h new file mode 100644 index 00000000..a26d3aa1 --- /dev/null +++ b/server/gameserver/mt/PveGeminiMode.h @@ -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: + + }; + +} diff --git a/server/gameserver/mt/Text.cc b/server/gameserver/mt/Text.cc new file mode 100644 index 00000000..d1e1d6cf --- /dev/null +++ b/server/gameserver/mt/Text.cc @@ -0,0 +1,10 @@ +#include "precompile.h" + +#include "mt/Text.h" + +IMPL_TABLE(mt::Text) + +namespace mt +{ + +} diff --git a/server/gameserver/mt/Text.h b/server/gameserver/mt/Text.h new file mode 100644 index 00000000..7f1d37f7 --- /dev/null +++ b/server/gameserver/mt/Text.h @@ -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: + + }; + +} diff --git a/server/tools/protobuild/metatable.proto b/server/tools/protobuild/metatable.proto index a73b19b9..ae7641a5 100755 --- a/server/tools/protobuild/metatable.proto +++ b/server/tools/protobuild/metatable.proto @@ -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 -{ - -} \ No newline at end of file