summaryrefslogtreecommitdiff
path: root/src/package.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/package.cpp')
-rw-r--r--src/package.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/package.cpp b/src/package.cpp
index e958a19..0d860a6 100644
--- a/src/package.cpp
+++ b/src/package.cpp
@@ -30,6 +30,15 @@ namespace silly::editor {
const std::string &LevelPackage::get_name() const { return this->name; }
+ void LevelPackage::set_name(const std::string &name) { this->name = name; }
+
+ void LevelPackage::clear() {
+ this->name = "";
+ this->currentLevelIndex = 0;
+ this->levels.clear();
+ this->tileset.clear();
+ }
+
std::string LevelPackage::export_to_string() const {
std::ostringstream oss;