示例#1
0
 public Buildings.BasicMine CreateBasicMine(Vector3 location, bool flatten)
 {
     Buildings.BasicMine mine = new Buildings.BasicMine(this.RunningGameSession);
     mine.projectionMatrix = this.projectionMatrix;
     mine.Initialize(Buildings.BasicMine.StandardScale, Buildings.BasicMine.StandardRotation);
     this.buildings.Add(mine);
     //this.RunningGameSession.simulator.AddEntity(mine);
     return(mine);
 }
示例#2
0
            public BasicMineSim(BasicMine mineParent)
            {
                this.mineParent = mineParent;
                ProduceRate[(int)Simulation.ResourceStorage.Resource.OreAluminium]       = this.mineParent.resourceCell.Aluminium;
                ResourceMaxAmount[(int)Simulation.ResourceStorage.Resource.OreAluminium] = 1000;

                ProduceRate[(int)Simulation.ResourceStorage.Resource.OreCopper]       = this.mineParent.resourceCell.Copper;
                ResourceMaxAmount[(int)Simulation.ResourceStorage.Resource.OreCopper] = 1000;

                ProduceRate[(int)Simulation.ResourceStorage.Resource.OreGold]       = this.mineParent.resourceCell.Gold;
                ResourceMaxAmount[(int)Simulation.ResourceStorage.Resource.OreGold] = 1000;

                ProduceRate[(int)Simulation.ResourceStorage.Resource.OreIron]       = this.mineParent.resourceCell.Iron;
                ResourceMaxAmount[(int)Simulation.ResourceStorage.Resource.OreIron] = 1000;

                ProduceRate[(int)Simulation.ResourceStorage.Resource.OreLead]       = this.mineParent.resourceCell.Lead;
                ResourceMaxAmount[(int)Simulation.ResourceStorage.Resource.OreLead] = 1000;

                ProduceRate[(int)Simulation.ResourceStorage.Resource.OreLithium]       = this.mineParent.resourceCell.Lithium;
                ResourceMaxAmount[(int)Simulation.ResourceStorage.Resource.OreLithium] = 1000;

                ProduceRate[(int)Simulation.ResourceStorage.Resource.OreNickel]       = this.mineParent.resourceCell.Nickel;
                ResourceMaxAmount[(int)Simulation.ResourceStorage.Resource.OreNickel] = 1000;

                ProduceRate[(int)Simulation.ResourceStorage.Resource.OrePlatinum]       = this.mineParent.resourceCell.Platinum;
                ResourceMaxAmount[(int)Simulation.ResourceStorage.Resource.OrePlatinum] = 1000;

                ProduceRate[(int)Simulation.ResourceStorage.Resource.OreSilver]       = this.mineParent.resourceCell.Silver;
                ResourceMaxAmount[(int)Simulation.ResourceStorage.Resource.OreSilver] = 1000;

                ProduceRate[(int)Simulation.ResourceStorage.Resource.OreTitanium]       = this.mineParent.resourceCell.Titanium;
                ResourceMaxAmount[(int)Simulation.ResourceStorage.Resource.OreTitanium] = 1000;

                ProduceRate[(int)Simulation.ResourceStorage.Resource.OreTungsten]       = this.mineParent.resourceCell.Tungsten;
                ResourceMaxAmount[(int)Simulation.ResourceStorage.Resource.OreTungsten] = 1000;

                ProduceRate[(int)Simulation.ResourceStorage.Resource.OreUranium]       = this.mineParent.resourceCell.Uranium;
                ResourceMaxAmount[(int)Simulation.ResourceStorage.Resource.OreUranium] = 1000;
            }