예제 #1
0
        public CSVTable LoadConfig(string code)
        {
            CSVTable table = new CSVTable();

            if (m_cache.ContainsKey(code))
            {
                string content = m_cache[code];
                table.Parse(content);
            }
            else
            {
                var content = AssetManager.GetInstance().LoadConfig(code);
                if (!string.IsNullOrEmpty(content))
                {
                    m_cache.Add(code, content);
                    table.Parse(content);
                }
            }

            return(table);
        }