#include <yandex/maps/wiki/validator/objects/building_complex.h>
#include "object_init_helpers.h"
#include <maps/wikimap/mapspro/libs/validator/common/magic_strings.h>

namespace maps::wiki::validator {

BuildingComplex::BuildingComplex(
        TId id,
        const AttrMap& /* attributes */,
        const Relations& /* masters */,
        const Relations& slaves)
    : id_(id)
    , elements_(extractRelations(slaves, PART_ROLE))
{
}

} // namespace maps::wiki::validator
