Ejemplo n.º 1
0
 public Item CreateEpicItem(ItemBuilder builder)
 {
     builder.BuildPart1();
     builder.BuildPart2();
     builder.BuildPart3();
     return(builder.GetBuildedItem());
 }
Ejemplo n.º 2
0
        //ItemBuilder itemBuilder;

        //public Blacksmith(ItemBuilder builder)
        //{
        //    itemBuilder = builder;
        //}

        //public void CreateCommonItem()
        //{
        //    itemBuilder.BuildPart1();
        //}

        public Item CreateCommonItem(ItemBuilder builder)
        {
            builder.BuildPart1();
            return(builder.GetBuildedItem());
        }