Ejemplo n.º 1
0
        internal void UpdateRelocationCountdown()
        {
            AirForceSquadronRelocationCountdown rResult = null;

            foreach (var rSquadron in Squadrons.Values)
            {
                if (rSquadron.State != AirForceSquadronState.Relocating || !rSquadron.Relocation.TimeToComplete.HasValue)
                {
                    continue;
                }

                if (rResult == null || rResult.TimeToComplete.Value < rSquadron.Relocation.TimeToComplete.Value)
                {
                    rResult = rSquadron.Relocation;
                }
            }

            Relocation = rResult;
            OnPropertyChanged(nameof(Relocation));
        }
Ejemplo n.º 2
0
        internal protected AirForceSquadron(AirForceGroup rpGroup, RawAirForceSquadron rpRawData) : base(rpRawData)
        {
            r_Group = rpGroup;

            Relocation = new AirForceSquadronRelocationCountdown(rpGroup, this);
        }