public Buildings.Melter CreateBasicMelter(Vector3 location, bool flatten) { Buildings.Melter melter = new Buildings.Melter(this.RunningGameSession); melter.projectionMatrix = this.projectionMatrix; melter.Initialize(Buildings.Melter.StandardScale, Buildings.Melter.StandardRotation); this.buildings.Add(melter); //this.RunningGameSession.simulator.AddEntity(melter); return(melter); }
public MelterSim(Melter Parent) { this.parent = Parent; ResourceConsumptionPerSecond[(int)Simulation.ResourceStorage.Resource.OreAluminium] = 1; ProduceRate[(int)Simulation.ResourceStorage.Resource.MetalAluminium] = 1; ResourceConsumptionPerSecond[(int)Simulation.ResourceStorage.Resource.OreCopper] = 1; ProduceRate[(int)Simulation.ResourceStorage.Resource.MetalCopper] = 1; ResourceConsumptionPerSecond[(int)Simulation.ResourceStorage.Resource.OreGold] = 1; ProduceRate[(int)Simulation.ResourceStorage.Resource.MetalGold] = 1; ResourceConsumptionPerSecond[(int)Simulation.ResourceStorage.Resource.OreIron] = 1; ProduceRate[(int)Simulation.ResourceStorage.Resource.MetalIron] = 1; ResourceConsumptionPerSecond[(int)Simulation.ResourceStorage.Resource.OreLead] = 1; ProduceRate[(int)Simulation.ResourceStorage.Resource.MetalLead] = 1; ResourceConsumptionPerSecond[(int)Simulation.ResourceStorage.Resource.OreLithium] = 1; ProduceRate[(int)Simulation.ResourceStorage.Resource.MetalLithium] = 1; ResourceConsumptionPerSecond[(int)Simulation.ResourceStorage.Resource.OreNickel] = 1; ProduceRate[(int)Simulation.ResourceStorage.Resource.MetalNickel] = 1; ResourceConsumptionPerSecond[(int)Simulation.ResourceStorage.Resource.OrePlatinum] = 1; ProduceRate[(int)Simulation.ResourceStorage.Resource.MetalPlatinum] = 1; ResourceConsumptionPerSecond[(int)Simulation.ResourceStorage.Resource.OreSilver] = 1; ProduceRate[(int)Simulation.ResourceStorage.Resource.MetalSilver] = 1; ResourceConsumptionPerSecond[(int)Simulation.ResourceStorage.Resource.OreTitanium] = 1; ProduceRate[(int)Simulation.ResourceStorage.Resource.MetalTitanium] = 1; ResourceConsumptionPerSecond[(int)Simulation.ResourceStorage.Resource.OreTungsten] = 1; ProduceRate[(int)Simulation.ResourceStorage.Resource.MetalTungsten] = 1; ResourceConsumptionPerSecond[(int)Simulation.ResourceStorage.Resource.OreUranium] = 1; ProduceRate[(int)Simulation.ResourceStorage.Resource.MetalUranium] = 1; }