summaryrefslogtreecommitdiff
path: root/src/level.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-02-02 02:54:34 +0500
committerilotterytea <iltsu@alright.party>2025-02-02 02:54:34 +0500
commite7536175164e8ba816041971d9f2ab88082b0a6f (patch)
tree3a4baa1fdb2c6b6a593e15f79926c354acac5211 /src/level.hpp
parent0ae2d10bdfd3d4fe7483829fb9c9257973e644c7 (diff)
feat: windows for creating a new level and floor
Diffstat (limited to 'src/level.hpp')
-rw-r--r--src/level.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/level.hpp b/src/level.hpp
index 2364413..c5eb1ea 100644
--- a/src/level.hpp
+++ b/src/level.hpp
@@ -41,7 +41,7 @@ namespace silly::editor {
private:
int width, height;
- int activeLayerIndex;
+ int activeLayerIndex = 0;
std::vector<TileLayer> layers;
};
@@ -50,7 +50,7 @@ namespace silly::editor {
TileLevel(const std::string &name) : name(name) {}
~TileLevel() = default;
- void add_floor(TileFloor &floor);
+ void add_floor(TileFloor floor);
void move_to_floor(int floor_id);
TileFloor &get_current_floor();
@@ -61,7 +61,7 @@ namespace silly::editor {
private:
const std::string name;
- int current_floor;
+ int current_floor = 0;
std::vector<TileFloor> floors;
};
} \ No newline at end of file