/// <summary>
 /// Deserialization constructor
 /// </summary>
 /// <param name="serial"></param>
 public RemappingPoint(SerializableRemappingPoint serial)
 {
     m_attributes[(int)EveAttribute.Intelligence] = serial.Intelligence;
     m_attributes[(int)EveAttribute.Perception] = serial.Perception;
     m_attributes[(int)EveAttribute.Willpower] = serial.Willpower;
     m_attributes[(int)EveAttribute.Charisma] = serial.Charisma;
     m_attributes[(int)EveAttribute.Memory] = serial.Memory;
     m_description = serial.Description;
     m_status = serial.Status;
 }
Exemple #2
0
        /// <summary>
        /// Deserialization constructor.
        /// </summary>
        /// <param name="serial">The serial.</param>
        /// <exception cref="System.ArgumentNullException">serial</exception>
        public RemappingPoint(SerializableRemappingPoint serial)
        {
            serial.ThrowIfNull(nameof(serial));

            Guid = Guid.NewGuid();
            m_attributes[(int)EveAttribute.Intelligence] = serial.Intelligence;
            m_attributes[(int)EveAttribute.Perception] = serial.Perception;
            m_attributes[(int)EveAttribute.Willpower] = serial.Willpower;
            m_attributes[(int)EveAttribute.Charisma] = serial.Charisma;
            m_attributes[(int)EveAttribute.Memory] = serial.Memory;
            m_description = serial.Description;
            Status = serial.Status;
        }
 /// <summary>
 /// Creates a serialization object
 /// </summary>
 /// <returns></returns>
 internal SerializableRemappingPoint Export()
 {
     var serial = new SerializableRemappingPoint();
     serial.Intelligence = m_attributes[(int)EveAttribute.Intelligence];
     serial.Perception = m_attributes[(int)EveAttribute.Perception];
     serial.Willpower = m_attributes[(int)EveAttribute.Willpower];
     serial.Charisma = m_attributes[(int)EveAttribute.Charisma];
     serial.Memory = m_attributes[(int)EveAttribute.Memory];
     serial.Description = m_description;
     serial.Status = m_status;
     return serial;
 }