1
This commit is contained in:
parent
39a4603107
commit
d5dbf1aca6
@ -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<BattleHeroGrow>(res_path_);
|
||||
RegMetaTable<InGameVoice>(res_path_);
|
||||
RegMetaTable<MapMode>(res_path_);
|
||||
RegMetaTable<CircuitTime>(res_path_);
|
||||
}
|
||||
|
||||
void MetaMgr::Load()
|
||||
|
@ -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<a8::reflect::Class> CircuitTime::GetClass() const
|
||||
{
|
||||
std::shared_ptr<a8::reflect::Class> meta_class = nullptr;
|
||||
if (!meta_class) {
|
||||
meta_class = std::make_shared<a8::reflect::Class>("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;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user