Пример #1
0
        private void ProcessNewPickups()
        {
            SkylinesOverwatch.Data data = SkylinesOverwatch.Data.Instance;

            foreach (ushort pickup in data.BuildingsUpdated)
            {
                if (data.IsBuildingWithDead(pickup))
                {
                    if (_master.ContainsKey(pickup))
                    {
                        if (float.IsNegativeInfinity(_master[pickup]))
                        {
                            _master[pickup] = float.PositiveInfinity;
                        }
                        else if (_master[pickup] <= 400)
                        {
                            _master[pickup] = float.NegativeInfinity;
                        }
                    }

                    foreach (ushort id in _cemeteries.Keys)
                    {
                        _cemeteries[id].AddPickup(pickup);
                    }
                }
                else
                {
                    foreach (ushort id in _cemeteries.Keys)
                    {
                        _cemeteries[id].AddCheckup(pickup);
                    }
                }
            }
        }
Пример #2
0
        private void ProcessNewPickups()
        {
            SkylinesOverwatch.Data data = SkylinesOverwatch.Data.Instance;

            foreach (ushort pickup in data.BuildingsUpdated)
            {
                if (data.IsCemetery(pickup))
                {
                    continue;
                }

                if (data.IsBuildingWithDead(pickup))
                {
                    foreach (ushort id in _cemeteries.Keys)
                    {
                        _cemeteries[id].AddPickup(pickup);
                    }
                }
                else
                {
                    foreach (ushort id in _cemeteries.Keys)
                    {
                        _cemeteries[id].AddCheckup(pickup);
                    }
                }
            }
        }