diff options
Diffstat (limited to 'src/package.cpp')
| -rw-r--r-- | src/package.cpp | 9 |
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; |
