private void SetWaypoint()
        {
            _closestHospital = GetClosestHospital();
            var blip = new Blip(_closestHospital, 10f);

            blip.SetStandardColor(CalloutStandardization.BlipTypes.Support);
            BlipList.Add(blip);

            Game.DisplayHelp("Drive to the nearest ~g~hospital~w~");

            _procHost.SwapProcesses(SetWaypoint, AwaitArrival);
        }
Beispiel #2
0
        public BlipList GetAll()
        {
            if (System.IO.File.Exists(dataPath))
            {
                using (var reader = new StreamReader(dataPath))
                {
                    XmlSerializer deserializer = new XmlSerializer(typeof(BlipList), new XmlRootAttribute("BlipList"));
                    currentBlips = (BlipList)deserializer.Deserialize(reader);
                }
            }
            else
            {
                SaveChanges();
            }

            return(currentBlips);
        }