예제 #1
0
 public EditroidAction RemoveSelection()
 {
     if (editor.GetSelectedItem() is DoorInstance)
     {
         return(new ChangeDoor(queue, CurrentScreen, ((DoorInstance)editor.GetSelectedItem()).Side, DoorType.Invalid));
     }
     else
     {
         return(AddOrRemoveObject.RemoveObject(queue,
                                               CurrentScreen,
                                               editor.GetSelectedItem()
                                               ));
     }
 }