diff options
| author | ilotterytea <iltsu@alright.party> | 2025-02-02 23:07:04 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-02-02 23:07:04 +0500 |
| commit | b345c36cafa8cddbc27d03c01ee851b0e0947db1 (patch) | |
| tree | 0947066310c2d6d48696b00e1852c0c6ed2061cf /src/package.cpp | |
| parent | 58fdbd8edfbb85a06c6c4bc0edafa46faf0709ef (diff) | |
feat: "create a new package" window
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; |
