From 03bc216da010154d65fcde90732242afee4eef57 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 3 Jan 2024 16:38:33 +0800 Subject: [PATCH] 1 --- server/gameserver/mt/Distribution.cc | 5 +++++ server/gameserver/mt/Distribution.h | 14 ++++++++++++-- server/gameserver/mt/LootConfig.cc | 5 +++++ server/gameserver/mt/LootConfig.h | 14 ++++++++++++-- server/gameserver/mt/MetaMgr.cc | 14 ++++++++++++++ 5 files changed, 48 insertions(+), 4 deletions(-) diff --git a/server/gameserver/mt/Distribution.cc b/server/gameserver/mt/Distribution.cc index e69de29b..93b715f9 100644 --- a/server/gameserver/mt/Distribution.cc +++ b/server/gameserver/mt/Distribution.cc @@ -0,0 +1,5 @@ +#include "precompile.h" + +#include "mt/Distribution.h" + +IMPL_TABLE(mt::Distribution) diff --git a/server/gameserver/mt/Distribution.h b/server/gameserver/mt/Distribution.h index c7f57b32..b9e96946 100644 --- a/server/gameserver/mt/Distribution.h +++ b/server/gameserver/mt/Distribution.h @@ -1,5 +1,15 @@ -#include "precompile.h" +#pragma once +#include "mt/macro.h" #include "mtb/Distribution.h" -IMPL_TABLE(mt::Distribution) +namespace mt +{ + + DECLARE_ID_TABLE(Distribution, mtb::Distribution, + "distribution@distribution.json", + "id") + public: + }; + +} diff --git a/server/gameserver/mt/LootConfig.cc b/server/gameserver/mt/LootConfig.cc index e69de29b..06b3effd 100644 --- a/server/gameserver/mt/LootConfig.cc +++ b/server/gameserver/mt/LootConfig.cc @@ -0,0 +1,5 @@ +#include "precompile.h" + +#include "mt/LootConfig.h" + +IMPL_TABLE(mt::LootConfig) diff --git a/server/gameserver/mt/LootConfig.h b/server/gameserver/mt/LootConfig.h index 266c4f13..45310aee 100644 --- a/server/gameserver/mt/LootConfig.h +++ b/server/gameserver/mt/LootConfig.h @@ -1,5 +1,15 @@ -#include "precompile.h" +#pragma once +#include "mt/macro.h" #include "mtb/LootConfig.h" -IMPL_TABLE(mt::LootConfig) +namespace mt +{ + + DECLARE_ID_TABLE(LootConfig, mtb::LootConfig, + "lootConfig@lootConfig.json", + "id") + public: + }; + +} diff --git a/server/gameserver/mt/MetaMgr.cc b/server/gameserver/mt/MetaMgr.cc index 6cc2b850..be17704c 100644 --- a/server/gameserver/mt/MetaMgr.cc +++ b/server/gameserver/mt/MetaMgr.cc @@ -41,6 +41,13 @@ #include "mt/MergeItem.h" #include "mt/MapThingGroup.h" #include "mt/SafeAreaSafePoint.h" +#include "mt/BattleBasicAttribute.h" +#include "mt/BattleLevelAttribute.h" +#include "mt/BattleRandAttribute.h" +#include "mt/BattleWeaponAttribute.h" +#include "mt/Condition.h" +#include "mt/Distribution.h" +#include "mt/LootConfig.h" #include "app.h" @@ -109,6 +116,13 @@ 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_); } void MetaMgr::Load()