Ejemplo n.º 1
0
 public static LocalizationFile GetFile(string path)
 {
     LocalizationFile file = (LocalizationFile) m_Files[path];
     if (file == null)
     {
         m_Files[path] = file = new LocalizationFile(path);
     }
     return file;
 }
Ejemplo n.º 2
0
        public static LocalizationFile GetFile(string path)
        {
            LocalizationFile file = (LocalizationFile)m_Files[path];

            if (file == null)
            {
                m_Files[path] = file = new LocalizationFile(path);
            }
            return(file);
        }
Ejemplo n.º 3
0
        public static string GetString(int number)
        {
            string str = (string)m_Strings[number];

            if (str == null)
            {
                string str2;
                int    num2;
                int    num = number;
                if (number >= 0x2dc6c0)
                {
                    number -= 0x2dc6c0;
                    int num3 = number / 0x3e8;
                    str2 = "intloc" + num3.ToString("D2") + m_Extension;
                    num2 = number % 0x3e8;
                }
                else if (number >= 0xf4240)
                {
                    number -= 0xf4240;
                    str2    = "cliloc" + ((number / 0x3e8)).ToString("D2") + m_Extension;
                    num2    = number % 0x3e8;
                }
                else if (number >= 0x7a120)
                {
                    str2 = m_Cliloc1;
                    num2 = number - 0x7a120;
                }
                else
                {
                    return(string.Format("<Localization number invalid: {0}>", num));
                }
                LocalizationFile file = GetFile(Engine.FileManager.ResolveMUL(str2));
                m_Strings[num] = str = file[num2];
            }
            return(str);
        }