Mario Editor: add land type switching

This commit is contained in:
2021-05-31 14:03:11 +02:00
parent af94cc0e03
commit cd0a301e52
6 changed files with 145 additions and 31 deletions
+5
View File
@@ -3,6 +3,7 @@
#include "../sdlpp/sdlpp_visitor.hpp"
#include "../sdlpp/sdlpp_geometry.hpp"
#include "blocks.hpp"
#include <memory>
struct VisitorType {
@@ -80,6 +81,9 @@ public:
virtual uint64_t getVisitorType() override {
return _type;
}
void setSourceType(LandType::Value type) {
source_type = type;
}
bool addBlock();
bool removeBlock();
@@ -88,6 +92,7 @@ private:
bool add_block = true;
uint64_t source_id = 0;
uint64_t _type = 0;
LandType::Value source_type;
};
#endif