Esempio n. 1
0
 /// <summary>
 /// The details (and possibly the names) of a tag have changed. Update the name lookup tables
 /// </summary>
 /// <param name="changedTag"></param>
 /// <param name="oldName"></param>
 /// <param name="oldShortName"></param>
 public static void TagDetailsChanged(Tag changedTag, string oldName, string oldShortName)
 {
     NameLookup.Remove(oldName);
     NameLookup[changedTag.Name] = changedTag;
     ShortNameLookup.Remove(oldShortName);
     ShortNameLookup[changedTag.ShortName] = changedTag;
 }
Esempio n. 2
0
 /// <summary>
 /// Return the Tag with the specified short name or null if not found
 /// </summary>
 /// <param name="name"></param>
 /// <returns></returns>
 public static Tag GetTagByShortName(string shortName) => ShortNameLookup.GetValueOrDefault(shortName);