Beispiel #1
0
    public void Execute(HexMap map)
    {
        LifeModel life = _planet.SelectedPlanet.Life;

        _planet.SelectedPlanet.Props[R.Temperature].Value     = map.Temperature.Value;
        _planet.SelectedPlanet.Props[R.Temperature].Variation = map.TemperatureVariation.Value;

        _planet.SelectedPlanet.Props[R.Pressure].Value     = map.Pressure.Value;
        _planet.SelectedPlanet.Props[R.Pressure].Variation = map.PressureVariation.Value;

        _planet.SelectedPlanet.Props[R.Humidity].Value     = map.Humidity.Value;
        _planet.SelectedPlanet.Props[R.Humidity].Variation = map.HumidityVariation.Value;

        _planet.SelectedPlanet.Props[R.Radiation].Value     = map.Radiation.Value;
        _planet.SelectedPlanet.Props[R.Radiation].Variation = map.RadiationVariation.Value;

        _planet.GenerateFromModel(_planet.SelectedPlanet);

        _planet.SelectedPlanet.Life = GameModel.Copy(life);

        _planet.PlanetLoaded();
    }