public RoadLaneBuilder( Func<RoadLaneBlock> roadLaneBlockFactory, Func<Vector2, RoadConnection> roadConnectionEdgeFactory, CompositeConnectionCommand connectionCommand ) { this._roadLaneBlockFactory = roadLaneBlockFactory; this._roadConnectionEdgeFactory = roadConnectionEdgeFactory; this._connectionCommand = connectionCommand; }
public ConnectObjectCommand( IMouseInformation mouseInformation, CompositeConnectionCommand compositeConnectionCommand, RoadLayer owner ) { this._mouseInformation = mouseInformation; this._compositeConnectionCommand = compositeConnectionCommand; this._visitator = new VisitAllChildren( owner ); this._mouseInformation.LeftButtonClicked.Subscribe( this.LeftButtonClicked ); }