Esempio n. 1
0
 public static ToolCommandBase Create(ToolType tool, ArchitectToolControler toolControler, ArchitectTilePositionGetter getter)
 {
     switch (tool)
     {
     case ToolType.Brush: return(new BrushCommand(getter, toolControler.SelectedTileType, toolControler.RotationFlip));
         //case ToolType.Eraser: return new EraserTool(architect, getter);
     }
     return(null);
 }
Esempio n. 2
0
 public static ToolCommandBase Create(ToolType tool, ArchitectToolControler toolControler, ArchitectTilePositionGetter getter)
 {
     switch (tool)
     {
         case ToolType.Brush: return new BrushCommand(getter, toolControler.SelectedTileType, toolControler.RotationFlip);
         //case ToolType.Eraser: return new EraserTool(architect, getter);
     }
     return null;
 }