Ejemplo n.º 1
0
 public Buildings.SolarPlant CreateBasicSolarPlant(Vector3 location, bool flatten)
 {
     Buildings.SolarPlant solar = new Buildings.SolarPlant(this.RunningGameSession);
     solar.projectionMatrix = this.projectionMatrix;
     solar.Initialize(Buildings.SolarPlant.StandardScale, Buildings.SolarPlant.StandardRotation);
     this.buildings.Add(solar);
     //this.RunningGameSession.simulator.AddEntity(solar);
     return(solar);
 }
Ejemplo n.º 2
0
            public SolorPlantSim(SolarPlant parent)
            {
                this.Parent = parent;
                ProduceRate[(int)Simulation.ResourceStorage.Resource.ELECTRICITY]       = 0.01f;
                ResourceMaxAmount[(int)Simulation.ResourceStorage.Resource.ELECTRICITY] = 1000;

                if (!parent.IsGhost)
                {
                    this.Parent.RunningGameSession.AvailableResources.AddResourceAmount(Simulation.ResourceStorage.Resource.ELECTRICITY, 100);
                }
            }