Example #1
0
 /// <summary>
 /// Removes a list of contacts from the faction and from the system lists.
 /// </summary>
 /// <param name="ContactList">List to be removed</param>
 public void RemoveContactList(FactionSystemDetection ContactList)
 {
     ContactList.System.FactionDetectionLists.Remove(ContactList);
     SystemContacts.Remove(ContactList.System);
 }
Example #2
0
        /// <summary>
        /// Adds a list of contacts to the faction.
        /// </summary>
        /// <param name="system">Starsystem for the contacts.</param>
        public void AddNewContactList(StarSystem system)
        {
            if (SystemContacts.ContainsKey(system) == false)
            {
                FactionSystemDetection NewContact = new FactionSystemDetection(this, system);
                system.FactionDetectionLists.Add(NewContact);
                SystemContacts.Add(system, NewContact);
            }

        }