using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Revitalize.Framework.Objects.InformationFiles; namespace Revitalize.Framework.Utilities { public class MachineUtilities { public static Dictionary> ResourcesForMachines; public static List GetResourcesProducedByThisMachine(string ID) { if (ResourcesForMachines == null) InitializeResourceList(); if (ResourcesForMachines.ContainsKey(ID)) { return ResourcesForMachines[ID]; } else if (ID.Equals("Omegasis.Revitalize.Objects.Machines.MiningDrillV1")) { return ModCore.ObjectManager.resources.miningDrillResources.Values.ToList(); } return new List(); } public static void InitializeResourceList() { ResourcesForMachines = new Dictionary>() { {"Omegasis.Revitalize.Objects.Machines.BatteryBin" ,new List(){ new Objects.InformationFiles.ResourceInformation(new StardewValley.Object((int)Enums.SDVObject.BatteryPack,1),1,1,1,1,1,1,0,0,0,0) } }, {"Omegasis.Revitalize.Objects.Machines.Sandbox",new List(){ new Objects.InformationFiles.ResourceInformation(ModCore.ObjectManager.resources.getResource("Sand",1),1,1,1,1,1,1,0,0,0,0) } } }; } } }