public void LoadData(NNSMSaveData data) { m_screenshotScriptThis.LoadData(data.m_screenshotData); m_sampleDistributionStay = data.m_sampleDistributionStay; m_sampleDistributionPre = data.m_sampleDistributionPre; m_widthModifierSource = data.m_widthModifierSource; m_heightModifierSource = data.m_heightModifierSource; m_widthModifierThis = data.m_widthModifierThis; m_heightModifierThis = data.m_heightModifierThis; m_tossNoOutputSamples = data.m_tossNoOutputSamples; m_minSamplesNoStay = data.m_minSamplesNoStay; m_maxSamplesNoStay = data.m_maxSamplesNoStay; m_maxSamplesStay = data.m_maxSamplesStay; m_maxSamplesStayPercent = data.m_maxSamplesStayPercent; m_batchSize = data.m_batchSize; //if(m_keepSamples) //{ // m_samplesGatheredNoStay.Clear(); // foreach (SampleContainer sample in data.m_samples) // m_samplesGatheredNoStay.Add(sample); //} }
// object data control public NNSMSaveData SaveData() { NNSMSaveData data = new NNSMSaveData { m_sampleDistributionStay = m_sampleDistributionStay, m_sampleDistributionPre = m_sampleDistributionPre, m_widthModifierSource = m_widthModifierSource, m_heightModifierSource = m_heightModifierSource, m_widthModifierThis = m_widthModifierThis, m_heightModifierThis = m_heightModifierThis, m_tossNoOutputSamples = m_tossNoOutputSamples, m_minSamplesNoStay = m_minSamplesNoStay, m_maxSamplesNoStay = m_maxSamplesNoStay, m_maxSamplesStay = m_maxSamplesStay, m_maxSamplesStayPercent = m_maxSamplesStayPercent, m_batchSize = m_batchSize, m_screenshotData = m_screenshotScriptThis.SaveData() }; //if (m_keepSamples) //{ // data.m_samples = new List<SampleContainer>(); // foreach(SampleContainer sample in m_samplesGatheredNoStay) // data.m_samples.Add(sample); //} return(data); }