Exemplo n.º 1
0
        public void ClearAll()
        {
            lock (HandleMap)
            {
                foreach (var pair in HandleMap)
                {
                    if (Blips.Contains(pair.Value))
                    {
                        new Blip(pair.Value).Remove();
                    }
                    else if (Pickups.Contains(pair.Value))
                    {
                        Function.Call(Hash.REMOVE_PICKUP, pair.Value);
                    }
                    else
                    {
                        new Prop(pair.Value).Delete();
                    }
                }

                HandleMap.Clear();
                Markers.Clear();
                Blips.Clear();
                Pickups.Clear();
                _localMarkers.Clear();
                _markerCount = 0;
            }
        }
Exemplo n.º 2
0
 public bool IsPickup(int localHandle)
 {
     return(Pickups.Contains(localHandle));
 }