public static ExcelRefVO Get(string excelID, string id)
        {
            if (string.IsNullOrEmpty(excelID) || string.IsNullOrEmpty(id))
            {
                return(null);
            }
            List <ExcelRefVO> ids = null;

            if (ExcelIDMapping.TryGetValue(excelID, out ids))
            {
                foreach (ExcelRefVO vo in ids)
                {
                    if (vo.id == id)
                    {
                        return(vo);
                    }
                }
            }
            return(null);
        }
Esempio n. 2
0
        public static string GetPrifix(string name)
        {
            if (_doc == null)
            {
                _doc = load();
            }
            string value = null;

            prefixs.TryGetValue(name, out value);
            return(value);
        }
Esempio n. 3
0
        public static string[] GetPrefabExports(string key)
        {
            if (_doc == null)
            {
                _doc = load();
            }

            string[] result = null;
            prefabExports.TryGetValue(key, out result);
            return(result);
        }
Esempio n. 4
0
        public static XmlNode GetPrefabExportsRaw(string key)
        {
            if (_doc == null)
            {
                _doc = load();
            }

            XmlNode result = null;

            prefabExportsRaw.TryGetValue(key, out result);
            return(result);
        }