29 lines
647 B
C++
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()));
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|