Ejemplo n.º 1
0
        private void AddComponentInputs(BuildComponentFactory factory, LayoutNode layoutNode, bool trimTriangles)
        {
            var matchingComponent = FindLayout(BuildComponentLayout.CreateStyleKey(layoutNode.ComponentType, layoutNode.ComponentName, layoutNode.GetFabricStyles()));

            if (matchingComponent != null)
            {
                matchingComponent.Quantity += 1;
            }
            else
            {
                var component = factory.CreateBuildComponentLayout(layoutNode, trimTriangles);
                AddInput(component);
            }
        }
Ejemplo n.º 2
0
 protected override IBuildComponent Clone(BuildComponentFactory factory)
 {
     return(factory.CreateBuildComponentLayout(LayoutNode, TrimTriangles));
 }