Beispiel #1
0
    private void UpdateUnits(int minUnitLifetime)
    {
        foreach (UnitModel unit in _planet.Life.Units)
        {
            if (_debug.isActive || unit.Props[R.Health].Value > 0)
            {
                _liveSkill.ExecuteTime(minUnitLifetime, unit);
                _mineSkill.ExecuteTime(minUnitLifetime, unit);
            }
        }

        _planetUpdateCommand.Execute();
    }
Beispiel #2
0
 public void PlanetLoaded()
 {
     GameModel.Set <PlanetModel>(_selectedPlanet);
     _planetUpdateCommand.Execute();
     GameMessage.Listen <ClockTickMessage>(OnClockTick);
 }