game2006/server/gameserver/mt/MapThingGroup.cc
aozhiwei ce5e033a98 1
2023-05-25 16:15:41 +08:00

29 lines
647 B
C++

#include "precompile.h"
#include "mt/MapThingGroup.h"
IMPL_TABLE(mt::MapThingGroup)
namespace mt
{
void MapThingGroup::Init1()
{
{
std::vector<std::string> strings;
a8::Split(mapThings(), strings, '|');
for (auto& str : strings) {
items_.push_back(std::make_tuple(1, a8::XValue(str).GetInt()));
}
}
{
std::vector<std::string> strings;
a8::Split(heroes(), strings, '|');
for (auto& str : strings) {
items_.push_back(std::make_tuple(2, a8::XValue(str).GetInt()));
}
}
}
}