Ejemplo n.º 1
0
 public ItemRecipe(String iconName, double time, int amount1, ItemRecipe item1, int amount2, ItemRecipe item2, int amount3, ItemRecipe item3, int amountOut = 1)
 {
     this.iconName    = iconName;
     this.time        = time;
     this.itemAmounts = new ItemAmount[] { new ItemAmount(amount1, item1), new ItemAmount(amount2, item2), new ItemAmount(amount3, item3) };
     this.amountOut   = amountOut;
 }
Ejemplo n.º 2
0
        private void AddAssembler(int x, int y, ItemRecipe itemRecipe)
        {
            Assembler assembler = new Assembler(itemRecipe);

            for (int i = -1; i <= 1; i++)
            {
                for (int j = -1; j <= 1; j++)
                {
                    map[x + i, y + j] = assembler;
                }
            }
            entityPlacements.Add(new EntityPlacement(x, y, assembler));
        }
Ejemplo n.º 3
0
 public ItemAmount(int count, ItemRecipe item)
 {
     this.count = count;
     this.item  = item;
 }
Ejemplo n.º 4
0
 public Assembler(ItemRecipe item)
 {
     this.item = item;
 }