示例#1
0
        public static string Get(uint stringId)
        {
            if (m_reader == null)
            {
                m_reader = new MyXmlReader <string>(GameData.locale);
            }

            string[] path = { key + stringId.ToString() };
            return(m_reader.GetInnerText(path));
        }
示例#2
0
        public static uint GetPrice(uint level)
        {
            if (m_reader == null)
            {
                m_reader = new MyXmlReader <uint>(GameData.LEVELS_PATH);
            }

            string[] path = { key + level.ToString() };
            return(m_reader.GetInnerText(path));
        }