Mario Editor: add land type switching
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user