libBeatsaber/src/beatset.cpp

20 lines
478 B
C++
Raw Normal View History

2021-05-30 21:56:21 +02:00
#include "beatsetimpl.h"
#include <nlohmann/json.hpp>
namespace Beatsaber {
2021-06-01 11:47:41 +02:00
BeatSetImpl::BeatSetImpl(std::weak_ptr<BeatMap> p, const json& j) : parent(p), characteristic(BeatmapCharacteristic::getByString(j["_beatmapCharacteristicName"])) {
2021-05-30 21:56:21 +02:00
}
BeatSetImpl::~BeatSetImpl() {}
BeatmapCharacteristic::BeatmapCharacteristic BeatSetImpl::getCharacteristic() const {
return characteristic;
}
2021-06-01 11:47:41 +02:00
std::shared_ptr<BeatMap> BeatSetImpl::getBeatMap() const {
return parent.lock();
}
2021-05-30 21:56:21 +02:00
}