/// <summary> /// Imports data from the given implants information. /// </summary> /// <param name="implants">The serialized implant information</param> internal void Import(List <int> implants) { // Implants var newImplants = new LinkedList <SerializableNewImplant>(); foreach (int implant in implants) { newImplants.AddLast(new SerializableNewImplant() { ID = implant, Name = StaticItems.GetItemName(implant) }); } CurrentImplants.Import(newImplants); }
/// <summary> /// Imports data from the given implants information. /// </summary> /// <param name="implants">The serialized implant information</param> internal void Import(List <int> implants) { // Implants var newImplants = new LinkedList <SerializableNewImplant>(); foreach (int implant in implants) { newImplants.AddLast(new SerializableNewImplant() { ID = implant, Name = StaticItems.GetItemName(implant) }); } CurrentImplants.Import(newImplants); EveMonClient.OnCharacterImplantSetCollectionChanged(this); }
/// <summary> /// Imports data from the given implants information. /// </summary> /// <param name="result">The serialized implant information</param> internal void Import(EsiResult <List <int> > result) { var implants = result.Result; // Implants var newImplants = new LinkedList <SerializableNewImplant>(); foreach (int implant in implants) { newImplants.AddLast(new SerializableNewImplant() { ID = implant, Name = StaticItems.GetItemName(implant) }); } CurrentImplants.Import(newImplants); EveMonClient.OnCharacterInfoUpdated(this); }