public RunnerTrunkTableConfig GetTrunkConfigTable() { TrunkConfigTable config = TryGetConfig <TrunkConfigTable>(ConfigPath_LimitFuncSceneConfig); if (null == config || string.IsNullOrEmpty(config.TrunkConfigXml)) { return(null); } RunnerTrunkTableConfig res = XmlConfigBase.DeSerialize <RunnerTrunkTableConfig>(config.TrunkConfigXml); return(res); }
private void CombineData() { if (m_TmpConfigList.Count <= 0) { Tip("没找到 " + PrefixName + " 文件"); return; } RunnerTrunkTableConfig table = new RunnerTrunkTableConfig(); table.TrunkList = new List <RunnerTrunkConfig>(); for (int i = 0; i < m_TmpConfigList.Count; ++i) { RunnerTrunkConfig elem = RunnerTrunkElementConfig.ConvertToConfig(m_TmpConfigList[i]); table.TrunkList.Add(elem); } string xmlData = XmlConfigBase.Serialize(table); FileUtils.WriteStringFile(xmlData, m_strDataOutputPath + "/" + m_strXmlName); }
private void CombineData() { if (m_TmpConfigList.Count <= 0) { Tip("没找到 " + PrefixName + " 文件"); return; } RunnerTrunkTableConfig table = new RunnerTrunkTableConfig(); table.TrunkList = new List<RunnerTrunkConfig>(); for (int i = 0; i < m_TmpConfigList.Count; ++i) { RunnerTrunkConfig elem = RunnerTrunkElementConfig.ConvertToConfig(m_TmpConfigList[i]); table.TrunkList.Add(elem); } string xmlData = XmlConfigBase.Serialize(table); FileUtils.WriteStringFile(xmlData, m_strDataOutputPath + "/" + m_strXmlName); }