示例#1
0
        public void DeleteFidelityParameters(int index)
        {
            messages.Remove(index);
            FileUtil.SaveAllFidelityMessages(messages.Values.ToList());
            messages = FileUtil.LoadAllFidelityMessages();
            if (m_DefaultFidelityParametersIndex == index)
            {
                defaultFidelityParametersIndex = 1;
            }

            RefreshTrends();
        }
示例#2
0
        public void LoadFromStreamingAssets(DevDescriptor descriptor)
        {
            m_DevDescriptor = descriptor;
            m_Settings      = FileUtil.LoadSettings(SettingsUtil.defaultSettings, m_DevDescriptor,
                                                    SettingsUtil.DefaultAdjustFunction);

            if (AreSettingsDirty())
            {
                FileUtil.SaveSettings(m_Settings, descriptor, SettingsUtil.DefaultAdjustFunction);
            }

            try
            {
                m_DefaultFidelityParametersIndex =
                    FileUtil.GetFidelityMessageIndex(m_Settings.DefaultFidelityParametersFilename);
            }
            catch (ArgumentException)
            {
                defaultFidelityParametersIndex = 1;
            }

            messages = FileUtil.LoadAllFidelityMessages();
            RefreshTrends();
        }