コード例 #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);
 }
コード例 #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;
 }