From 89e72625c940db0027849d1f1a9615d0166c37ad Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 3 Jan 2024 16:03:50 +0800 Subject: [PATCH] 1 --- server/gameserver/mt/BattleBasicAttribute.cc | 5 +++++ server/gameserver/mt/BattleBasicAttribute.h | 15 +++++++++++++++ server/gameserver/mt/BattleLevelAttribute.cc | 5 +++++ server/gameserver/mt/BattleLevelAttribute.h | 15 +++++++++++++++ server/gameserver/mt/BattleRandAttribute.cc | 5 +++++ server/gameserver/mt/BattleRandAttribute.h | 15 +++++++++++++++ server/gameserver/mt/BattleWeaponAttribute.cc | 5 +++++ server/gameserver/mt/BattleWeaponAttribute.h | 15 +++++++++++++++ server/gameserver/mt/Condition.cc | 5 +++++ server/gameserver/mt/Condition.h | 15 +++++++++++++++ server/gameserver/mt/Distribution.h | 5 +++++ server/gameserver/mt/LootConfig.h | 5 +++++ server/tools/protobuild/mt.proto | 9 +++++++++ 13 files changed, 119 insertions(+) diff --git a/server/gameserver/mt/BattleBasicAttribute.cc b/server/gameserver/mt/BattleBasicAttribute.cc index e69de29b..a603ec16 100644 --- a/server/gameserver/mt/BattleBasicAttribute.cc +++ b/server/gameserver/mt/BattleBasicAttribute.cc @@ -0,0 +1,5 @@ +#include "precompile.h" + +#include "mtb/BattleBasicAttribute.h" + +IMPL_TABLE(mt::BattleBasicAttribute) diff --git a/server/gameserver/mt/BattleBasicAttribute.h b/server/gameserver/mt/BattleBasicAttribute.h index e69de29b..3dc94fe2 100644 --- a/server/gameserver/mt/BattleBasicAttribute.h +++ b/server/gameserver/mt/BattleBasicAttribute.h @@ -0,0 +1,15 @@ +#pragma once + +#include "mt/macro.h" +#include "mtb/BattleBasicAttribute.h" + +namespace mt +{ + + DECLARE_ID_TABLE(BattleBasicAttribute, mtb::BattleBasicAttribute, + "battleBasicAttribute@battleBasicAttribute.json", + "id") + public: + }; + +} diff --git a/server/gameserver/mt/BattleLevelAttribute.cc b/server/gameserver/mt/BattleLevelAttribute.cc index e69de29b..3310dc93 100644 --- a/server/gameserver/mt/BattleLevelAttribute.cc +++ b/server/gameserver/mt/BattleLevelAttribute.cc @@ -0,0 +1,5 @@ +#include "precompile.h" + +#include "mtb/BattleLevelAttribute.h" + +IMPL_TABLE(mt::BattleLevelAttribute) diff --git a/server/gameserver/mt/BattleLevelAttribute.h b/server/gameserver/mt/BattleLevelAttribute.h index e69de29b..72c7ec82 100644 --- a/server/gameserver/mt/BattleLevelAttribute.h +++ b/server/gameserver/mt/BattleLevelAttribute.h @@ -0,0 +1,15 @@ +#pragma once + +#include "mt/macro.h" +#include "mtb/BattleLevelAttribute.h" + +namespace mt +{ + + DECLARE_ID_TABLE(BattleLevelAttribute, mtb::BattleLevelAttribute, + "battleLevelAttribute@battleLevelAttribute.json", + "id") + public: + }; + +} diff --git a/server/gameserver/mt/BattleRandAttribute.cc b/server/gameserver/mt/BattleRandAttribute.cc index e69de29b..1a3012b0 100644 --- a/server/gameserver/mt/BattleRandAttribute.cc +++ b/server/gameserver/mt/BattleRandAttribute.cc @@ -0,0 +1,5 @@ +#include "precompile.h" + +#include "mtb/BattleRandAttribute.h" + +IMPL_TABLE(mt::BattleRandAttribute) diff --git a/server/gameserver/mt/BattleRandAttribute.h b/server/gameserver/mt/BattleRandAttribute.h index e69de29b..470d02f2 100644 --- a/server/gameserver/mt/BattleRandAttribute.h +++ b/server/gameserver/mt/BattleRandAttribute.h @@ -0,0 +1,15 @@ +#pragma once + +#include "mt/macro.h" +#include "mtb/BattleRandAttribute.h" + +namespace mt +{ + + DECLARE_ID_TABLE(BattleRandAttribute, mtb::BattleRandAttribute, + "battleRandAttribute@battleRandAttribute.json", + "id") + public: + }; + +} diff --git a/server/gameserver/mt/BattleWeaponAttribute.cc b/server/gameserver/mt/BattleWeaponAttribute.cc index e69de29b..c51a29b5 100644 --- a/server/gameserver/mt/BattleWeaponAttribute.cc +++ b/server/gameserver/mt/BattleWeaponAttribute.cc @@ -0,0 +1,5 @@ +#include "precompile.h" + +#include "mtb/BattleWeaponAttribute.h" + +IMPL_TABLE(mt::BattleWeaponAttribute) diff --git a/server/gameserver/mt/BattleWeaponAttribute.h b/server/gameserver/mt/BattleWeaponAttribute.h index e69de29b..7026c99a 100644 --- a/server/gameserver/mt/BattleWeaponAttribute.h +++ b/server/gameserver/mt/BattleWeaponAttribute.h @@ -0,0 +1,15 @@ +#pragma once + +#include "mt/macro.h" +#include "mtb/BattleWeaponAttribute.h" + +namespace mt +{ + + DECLARE_ID_TABLE(BattleWeaponAttribute, mtb::BattleWeaponAttribute, + "battleWeaponAttribute@battleWeaponAttribute.json", + "id") + public: + }; + +} diff --git a/server/gameserver/mt/Condition.cc b/server/gameserver/mt/Condition.cc index e69de29b..80679a55 100644 --- a/server/gameserver/mt/Condition.cc +++ b/server/gameserver/mt/Condition.cc @@ -0,0 +1,5 @@ +#include "precompile.h" + +#include "mtb/Condition.h" + +IMPL_TABLE(mt::Condition) diff --git a/server/gameserver/mt/Condition.h b/server/gameserver/mt/Condition.h index e69de29b..8417b9af 100644 --- a/server/gameserver/mt/Condition.h +++ b/server/gameserver/mt/Condition.h @@ -0,0 +1,15 @@ +#pragma once + +#include "mt/macro.h" +#include "mtb/Condition.h" + +namespace mt +{ + + DECLARE_ID_TABLE(Condition, mtb::Condition, + "condition@condition.json", + "id") + public: + }; + +} diff --git a/server/gameserver/mt/Distribution.h b/server/gameserver/mt/Distribution.h index e69de29b..c7f57b32 100644 --- a/server/gameserver/mt/Distribution.h +++ b/server/gameserver/mt/Distribution.h @@ -0,0 +1,5 @@ +#include "precompile.h" + +#include "mtb/Distribution.h" + +IMPL_TABLE(mt::Distribution) diff --git a/server/gameserver/mt/LootConfig.h b/server/gameserver/mt/LootConfig.h index e69de29b..266c4f13 100644 --- a/server/gameserver/mt/LootConfig.h +++ b/server/gameserver/mt/LootConfig.h @@ -0,0 +1,5 @@ +#include "precompile.h" + +#include "mtb/LootConfig.h" + +IMPL_TABLE(mt::LootConfig) diff --git a/server/tools/protobuild/mt.proto b/server/tools/protobuild/mt.proto index e50eefa6..4a3a3751 100755 --- a/server/tools/protobuild/mt.proto +++ b/server/tools/protobuild/mt.proto @@ -725,6 +725,15 @@ message BattleWeaponAttribute optional string cost = 5; } +message BattleUnit +{ + optional int32 id = 1; + optional int32 weapon = 2; + optional int32 level = 3; + optional string levelAttribute = 4; + optional string cost = 5; +} + message Condition { optional int32 id = 1;