#include "package.hpp" #include namespace silly::editor { TileSet &LevelPackage::get_tileset() { return this->tileset; } void LevelPackage::add_level(TileLevel level) { this->levels.push_back(level); } TileLevel &LevelPackage::get_current_level() { return this->levels.at(this->currentLevelIndex); } void LevelPackage::move_to_level_index(int index) { this->currentLevelIndex = std::min(index, (int)this->levels.size() - 1); } const int LevelPackage::get_current_level_index() const { return this->currentLevelIndex; } const std::vector &LevelPackage::get_levels() const { return this->levels; } const std::string &LevelPackage::get_name() const { return this->name; } }