internal void LoadCraftingOperations() { if (_savedData?.AutoCraftData != null && !_craftSaveDataInit) { foreach (OperationSaveData operationSaveData in _savedData.AutoCraftData) { Crafts.Add(new FCSOperation { TechType = operationSaveData.TechType, IsCraftable = operationSaveData.IsCraftable, Manager = FindManager(operationSaveData.ManagerID) }); } _craftSaveDataInit = true; RefreshOperators(); } }
/// <summary> /// Adds thumbnail images for each craft to the imageLists and adds the craft to the crafts list. /// </summary> /// <param name="craft"></param> private void AddCraft(CraftInfo craft) { Crafts.Add(craft); SmallImageList.Images.Add(craft.ThumbName, craft.Thumb); LargeImageList.Images.Add(craft.ThumbName, craft.Thumb); }
void Awake() { instance = this; Crafts.Add(items.items[6].craftCode, items.items[6]); Crafts.Add(items.items[7].craftCode, items.items[7]); }
public static void AddCraft(FCSOperation operation) { Crafts.Add(operation); operation.Manager.RefreshOperators(); }