Mario editor: started refactoring

This commit is contained in:
2021-05-09 00:43:53 +02:00
parent 7b4c3c9697
commit b54ba5034c
8 changed files with 353 additions and 227 deletions
+2 -2
View File
@@ -62,12 +62,12 @@ void ToolVisitor::visit( const SDLPP::RenderObject &obj ) {
switch ( id ) {
case EDITOR_TERRAIN_ID:
remove_block = true;
if(obj.getId() == source_id && getVisitorType() == TOOL_VISITOR_TYPE) {
if(obj.getId() == source_id && getVisitorType() == VisitorType::Terrain) {
add_block = false;
}
case EDITOR_CHARACTER_ID:
remove_block = true;
if(obj.getId() == source_id && getVisitorType() == MODIFIER_VISITOR_TYPE) {
if(obj.getId() == source_id && getVisitorType() == VisitorType::Modifier) {
add_block = false;
}
default: