AddDeep() публичный Метод

public AddDeep ( int dataId, int quantity ) : Recipe
dataId int
quantity int
Результат Recipe
Пример #1
0
        public static Recipe CreateSample()
        {
            Recipe r = new Recipe(13901, 1)
            {
                IsRoot = true
            };

            r.AddDeep(12973, 1).AddDeep(19712, 6).AddDeep(19725, 18);

            r.AddDeep(13261, 1).AddDeep(19712, 2).AddDeep(19725, 6);

            var o  = r.AddDeep(19922, 1);
            var o2 = o.AddDeep(12988, 5);

            o2.AddDeep(19685, 15).AddDeep(19701, 30);
            o2.AddDeep(19712, 10).AddDeep(19725, 30);

            o.AddDeep(19721, 5);
            o.AddDeep(24289, 5);

            return(r);
        }
Пример #2
0
        public static Recipe CreateSample()
        {
            Recipe r = new Recipe(13901, 1) { IsRoot = true };
            r.AddDeep(12973, 1).AddDeep(19712, 6).AddDeep(19725, 18);

            r.AddDeep(13261, 1).AddDeep(19712, 2).AddDeep(19725, 6);

            var o = r.AddDeep(19922, 1);
            var o2 = o.AddDeep(12988, 5);
            o2.AddDeep(19685, 15).AddDeep(19701, 30);
            o2.AddDeep(19712, 10).AddDeep(19725, 30);

            o.AddDeep(19721, 5);
            o.AddDeep(24289, 5);

            return r;
        }