コード例 #1
0
ファイル: Character.cs プロジェクト: kinseytamsin/evemon
 /// <summary>
 /// Imports data from the given character clone information.
 /// </summary>
 /// <param name="clones">The serialized character clone information</param>
 internal void Import(EsiAPIClones clones)
 {
     // Information about clone jumping and clone moving
     JumpCloneLastJumpDate = clones.LastCloneJump;
     RemoteStationDate     = clones.LastStationChange;
     HomeStationID         = clones.HomeLocation.LocationID;
     ImplantSets.Import(clones);
 }
コード例 #2
0
        /// <summary>
        /// Imports data from the given character sheet informations.
        /// </summary>
        /// <param name="serial">The serialized character sheet</param>
        /// <exception cref="System.ArgumentNullException">serial</exception>
        protected void Import(SerializableSettingsCharacter serial)
        {
            serial.ThrowIfNull(nameof(serial));

            Import((SerializableCharacterSheetBase)serial);

            // Implants
            ImplantSets.Import(serial.ImplantSets);
        }
コード例 #3
0
ファイル: Character.cs プロジェクト: kinseytamsin/evemon
 /// <summary>
 /// Imports data from the given character sheet informations.
 /// </summary>
 /// <param name="serial">The serialized character sheet</param>
 private void Import(SerializableAPICharacterSheet serial)
 {
     Import((SerializableCharacterSheetBase)serial);
     // Implants
     if (serial.Implants.Any() || serial.JumpClones.Any())
     {
         ImplantSets.Import(serial);
     }
 }
コード例 #4
0
ファイル: Character.cs プロジェクト: naui11/evemon
        /// <summary>
        /// Imports data from the given character clone information.
        /// </summary>
        /// <param name="clones">The serialized character clone information</param>
        internal void Import(EsiAPIClones clones)
        {
            var newClones = new SerializableImplantSetCollection();

            // Information about clone jumping and clone moving
            JumpCloneLastJumpDate = clones.LastCloneJump;
            RemoteStationDate     = clones.LastStationChange;
            HomeStationID         = clones.HomeLocation.LocationID;
            ImplantSets.Import(newClones);
        }
コード例 #5
0
ファイル: Character.cs プロジェクト: Slazanger/evemon
        /// <summary>
        /// Imports data from the given character clone information.
        /// </summary>
        /// <param name="result">The serialized character clone information</param>
        internal void Import(EsiResult <EsiAPIClones> result)
        {
            var clones    = result.Result;
            var newClones = new SerializableImplantSetCollection();

            // Remap info
            JumpCloneLastJumpDate = clones.LastCloneJump;
            RemoteStationDate     = clones.LastStationChange;
            HomeStationID         = clones.HomeLocation.LocationID;

            ImplantSets.Import(newClones);

            EveMonClient.OnCharacterInfoUpdated(this);
        }