示例#1
0
 /// <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_status = serial.Status;
 }
示例#2
0
        /// <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.Status       = m_status;
            return(serial);
        }
示例#3
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;
        }