/// <summary> /// Constructor from an object deserialized from the settings file. /// </summary> /// <param name="src"></param> internal ResearchPoint(SerializableResearchPoint src) { GetAgentInfoByID(src.AgentID); m_agentID = src.AgentID; m_skillID = src.SkillID; m_skillName = src.SkillName; m_researchStartDate = src.StartDate; m_pointsPerDay = src.PointsPerDay; m_remainderPoints = src.RemainderPoints; }
/// <summary> /// Exports the given object to a serialization object. /// </summary> internal SerializableResearchPoint Export() { var serial = new SerializableResearchPoint(); serial.AgentID = m_agentID; serial.AgentName = m_agentName; serial.SkillID = m_skillID; serial.SkillName = m_skillName; serial.StartDate = m_researchStartDate; serial.PointsPerDay = m_pointsPerDay; serial.RemainderPoints = m_remainderPoints; return serial; }