public static void PerformCraft(FCSOperation craft) { var techData = DSSHelpers.CheckIfTechDataAvailable(craft, out var pass); if (pass) { if (craft.Manager.RemoveItems(techData.Ingredients)) { foreach (TechType item in techData.LinkedItems) { craft.Manager.AddItemToContainer(item.ToInventoryItem()); } for (int j = 0; j < techData.craftAmount; j++) { craft.Manager.AddItemToContainer(craft.TechType.ToInventoryItem()); } } } }
public static void DeleteAutoCraft(FCSOperation craft) { Crafts.Remove(craft); }
public void DeleteOperator(FCSOperation operation) { Operations.Remove(operation); RefreshOperators(); }
public static void AddCraft(FCSOperation operation) { Crafts.Add(operation); operation.Manager.RefreshOperators(); }
internal static void AddOperation(FCSOperation operation) { Operations.Add(operation); operation.Manager.RefreshOperators(); }