1
This commit is contained in:
parent
1c29803576
commit
bbcca3e108
10
server/gameserver/mt/Attr.cc
Normal file
10
server/gameserver/mt/Attr.cc
Normal file
@ -0,0 +1,10 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mt/Attr.h"
|
||||
|
||||
IMPL_TABLE(mt::Attr)
|
||||
|
||||
namespace mt
|
||||
{
|
||||
|
||||
}
|
16
server/gameserver/mt/Attr.h
Normal file
16
server/gameserver/mt/Attr.h
Normal file
@ -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:
|
||||
|
||||
};
|
||||
|
||||
}
|
10
server/gameserver/mt/FormulaPvp.cc
Normal file
10
server/gameserver/mt/FormulaPvp.cc
Normal file
@ -0,0 +1,10 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mt/FormulaPvp.h"
|
||||
|
||||
IMPL_TABLE(mt::FormulaPvp)
|
||||
|
||||
namespace mt
|
||||
{
|
||||
|
||||
}
|
16
server/gameserver/mt/FormulaPvp.h
Normal file
16
server/gameserver/mt/FormulaPvp.h
Normal file
@ -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:
|
||||
|
||||
};
|
||||
|
||||
}
|
@ -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;
|
||||
}
|
||||
|
10
server/gameserver/mt/GunQuality.cc
Normal file
10
server/gameserver/mt/GunQuality.cc
Normal file
@ -0,0 +1,10 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mt/GunQuality.h"
|
||||
|
||||
IMPL_TABLE(mt::GunQuality)
|
||||
|
||||
namespace mt
|
||||
{
|
||||
|
||||
}
|
16
server/gameserver/mt/GunQuality.h
Normal file
16
server/gameserver/mt/GunQuality.h
Normal file
@ -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:
|
||||
|
||||
};
|
||||
|
||||
}
|
10
server/gameserver/mt/GunTalentGrow.cc
Normal file
10
server/gameserver/mt/GunTalentGrow.cc
Normal file
@ -0,0 +1,10 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mt/GunTalentGrow.h"
|
||||
|
||||
IMPL_TABLE(mt::GunTalentGrow)
|
||||
|
||||
namespace mt
|
||||
{
|
||||
|
||||
}
|
16
server/gameserver/mt/GunTalentGrow.h
Normal file
16
server/gameserver/mt/GunTalentGrow.h
Normal file
@ -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:
|
||||
|
||||
};
|
||||
|
||||
}
|
10
server/gameserver/mt/HeroQuality.cc
Normal file
10
server/gameserver/mt/HeroQuality.cc
Normal file
@ -0,0 +1,10 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mt/HeroQuality.h"
|
||||
|
||||
IMPL_TABLE(mt::HeroQualiy)
|
||||
|
||||
namespace mt
|
||||
{
|
||||
|
||||
}
|
16
server/gameserver/mt/HeroQuality.h
Normal file
16
server/gameserver/mt/HeroQuality.h
Normal file
@ -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:
|
||||
|
||||
};
|
||||
|
||||
}
|
10
server/gameserver/mt/MapTplThingJson.cc
Normal file
10
server/gameserver/mt/MapTplThingJson.cc
Normal file
@ -0,0 +1,10 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mt/MapTplThingJson.h"
|
||||
|
||||
IMPL_TABLE(mt::MapTplThingJson)
|
||||
|
||||
namespace mt
|
||||
{
|
||||
|
||||
}
|
16
server/gameserver/mt/MapTplThingJson.h
Normal file
16
server/gameserver/mt/MapTplThingJson.h
Normal file
@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include "mt/macro.h"
|
||||
#include "mtb/MapTplThingJson.h"
|
||||
|
||||
namespace mt
|
||||
{
|
||||
|
||||
DECLARE_AUTO_ID_TABLE(MapTplThingJson, mtb::MapTplThingJson,
|
||||
"",
|
||||
"")
|
||||
public:
|
||||
|
||||
};
|
||||
|
||||
}
|
@ -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<Param>(res_path_);
|
||||
RegMetaTable<Hero>(res_path_);
|
||||
RegMetaTable<Map>(res_path_);
|
||||
RegMetaTable<Attr>(res_path_);
|
||||
RegMetaTable<FormulaPvp>(res_path_);
|
||||
RegMetaTable<GunQuality>(res_path_);
|
||||
RegMetaTable<GunTalentGrow>(res_path_);
|
||||
RegMetaTable<HeroQuality>(res_path_);
|
||||
RegMetaTable<MapTplThingJson>(res_path_);
|
||||
RegMetaTable<PveGemini>(res_path_);
|
||||
RegMetaTable<PveGeminiContent>(res_path_);
|
||||
RegMetaTable<PveGeminiMode>(res_path_);
|
||||
RegMetaTable<Text>(res_path_);
|
||||
{
|
||||
for (auto& itr : meta_tables) {
|
||||
itr->static_pre_init_cb();
|
||||
|
10
server/gameserver/mt/PveGemini.cc
Normal file
10
server/gameserver/mt/PveGemini.cc
Normal file
@ -0,0 +1,10 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mt/PveGemini.h"
|
||||
|
||||
IMPL_TABLE(mt::PveGemini)
|
||||
|
||||
namespace mt
|
||||
{
|
||||
|
||||
}
|
16
server/gameserver/mt/PveGemini.h
Normal file
16
server/gameserver/mt/PveGemini.h
Normal file
@ -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:
|
||||
|
||||
};
|
||||
|
||||
}
|
10
server/gameserver/mt/PveGeminiContent.cc
Normal file
10
server/gameserver/mt/PveGeminiContent.cc
Normal file
@ -0,0 +1,10 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mt/PveGeminiContent.h"
|
||||
|
||||
IMPL_TABLE(mt::PveGeminiContent)
|
||||
|
||||
namespace mt
|
||||
{
|
||||
|
||||
}
|
16
server/gameserver/mt/PveGeminiContent.h
Normal file
16
server/gameserver/mt/PveGeminiContent.h
Normal file
@ -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:
|
||||
|
||||
};
|
||||
|
||||
}
|
10
server/gameserver/mt/PveGeminiMode.cc
Normal file
10
server/gameserver/mt/PveGeminiMode.cc
Normal file
@ -0,0 +1,10 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mt/PveGeminiMode.h"
|
||||
|
||||
IMPL_TABLE(mt::PveGeminiMode)
|
||||
|
||||
namespace mt
|
||||
{
|
||||
|
||||
}
|
16
server/gameserver/mt/PveGeminiMode.h
Normal file
16
server/gameserver/mt/PveGeminiMode.h
Normal file
@ -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:
|
||||
|
||||
};
|
||||
|
||||
}
|
10
server/gameserver/mt/Text.cc
Normal file
10
server/gameserver/mt/Text.cc
Normal file
@ -0,0 +1,10 @@
|
||||
#include "precompile.h"
|
||||
|
||||
#include "mt/Text.h"
|
||||
|
||||
IMPL_TABLE(mt::Text)
|
||||
|
||||
namespace mt
|
||||
{
|
||||
|
||||
}
|
16
server/gameserver/mt/Text.h
Normal file
16
server/gameserver/mt/Text.h
Normal file
@ -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:
|
||||
|
||||
};
|
||||
|
||||
}
|
@ -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
|
||||
{
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user