diff --git a/server/gameserver/mt/MetaMgr.cc b/server/gameserver/mt/MetaMgr.cc index fed2c500..2fdd8b36 100644 --- a/server/gameserver/mt/MetaMgr.cc +++ b/server/gameserver/mt/MetaMgr.cc @@ -48,6 +48,7 @@ #include "mt/MobaRoom.h" #include "mt/InGameVoice.h" #include "mt/MapMode.h" +#include "mt/CircuitTime.h" #include "app.h" @@ -123,6 +124,7 @@ namespace mt RegMetaTable(res_path_); RegMetaTable(res_path_); RegMetaTable(res_path_); + RegMetaTable(res_path_); } void MetaMgr::Load() diff --git a/server/gameserver/mtb/mtb.all.cc b/server/gameserver/mtb/mtb.all.cc index ff2096cf..634ffe7b 100644 --- a/server/gameserver/mtb/mtb.all.cc +++ b/server/gameserver/mtb/mtb.all.cc @@ -49,6 +49,7 @@ #include "mtb/Distribution.h" #include "mtb/LootConfig.h" #include "mtb/BattleHeroGrow.h" +#include "mtb/CircuitTime.h" namespace mtb { @@ -1041,4 +1042,19 @@ namespace mtb return meta_class; } + std::shared_ptr CircuitTime::GetClass() const + { + std::shared_ptr meta_class = nullptr; + if (!meta_class) { + meta_class = std::make_shared("CircuitTime", 6, 0); + meta_class->SetSimpleField(0, "id", a8::reflect::ET_INT32, my_offsetof2(CircuitTime, id_)); + meta_class->SetSimpleField(1, "circuit_season", a8::reflect::ET_INT32, my_offsetof2(CircuitTime, circuit_season_)); + meta_class->SetSimpleField(2, "circuit_time_type", a8::reflect::ET_INT32, my_offsetof2(CircuitTime, circuit_time_type_)); + meta_class->SetSimpleField(3, "start_time", a8::reflect::ET_STRING, my_offsetof2(CircuitTime, start_time_)); + meta_class->SetSimpleField(4, "end_time", a8::reflect::ET_STRING, my_offsetof2(CircuitTime, end_time_)); + meta_class->SetSimpleField(5, "cec_pool", a8::reflect::ET_INT32, my_offsetof2(CircuitTime, cec_pool_)); + } + return meta_class; + } + } diff --git a/server/tools/protobuild/mt.proto b/server/tools/protobuild/mt.proto index 66241f28..cbc106f2 100755 --- a/server/tools/protobuild/mt.proto +++ b/server/tools/protobuild/mt.proto @@ -770,3 +770,13 @@ message BattleHeroGrow optional int32 currentSkillEffect = 10; optional string currentSkillDesc = 11; } + +message CircuitTime +{ + optional int32 id = 1; + optional int32 circuit_season = 2; + optional int32 circuit_time_type = 3; + optional string start_time = 4; + optional string end_time = 5; + optional int32 cec_pool = 6; +}