diff --git a/include/beatsaber-impl/beatsetimpl.h b/include/beatsaber-impl/beatsetimpl.h index dde68e7..411f19c 100644 --- a/include/beatsaber-impl/beatsetimpl.h +++ b/include/beatsaber-impl/beatsetimpl.h @@ -27,6 +27,8 @@ public: virtual void printDebug() const override; + virtual const std::vector>& getLevel() const override; + virtual BeatmapCharacteristic::BeatmapCharacteristic getCharacteristic() const override; virtual std::shared_ptr getBeatMap() const override; }; diff --git a/include/beatsaber/beatset.h b/include/beatsaber/beatset.h index 05c2314..7051eb4 100644 --- a/include/beatsaber/beatset.h +++ b/include/beatsaber/beatset.h @@ -16,6 +16,8 @@ public: virtual void printDebug() const = 0; + virtual const std::vector>& getLevel() const = 0; + virtual BeatmapCharacteristic::BeatmapCharacteristic getCharacteristic() const = 0; virtual std::shared_ptr getBeatMap() const = 0; }; diff --git a/src/beatset.cpp b/src/beatset.cpp index a47f156..705b682 100644 --- a/src/beatset.cpp +++ b/src/beatset.cpp @@ -36,13 +36,18 @@ bool BeatSetImpl::load() { } void BeatSetImpl::printDebug() const { - std::cout << " Characteristic: " << BeatmapCharacteristic::toString(characteristic) << std::endl; + std::cout << " Characteristic: " << BeatmapCharacteristic::toString(characteristic) + << "\n Levels: " << level.size() << std::endl; for(auto it : level) { it->printDebug(); } } +const std::vector>& BeatSetImpl::getLevel() const { + return level; +} + BeatmapCharacteristic::BeatmapCharacteristic BeatSetImpl::getCharacteristic() const { return characteristic; }