Пример #1
0
 private static c000188 m00027f(string p0, c000189 p1)
 {
     int num;
     string[] strArray2;
     c00019c cc = new c00019c();
     cc.m000080(m00027e(enum0196.f0001d8, p0));
     c000189 item = new c000189(cc.m000092(), Matrix.Identity, f00000b++);
     item.f0000e1.M33 *= -1f;
     item.f000001 = p1;
     f0001bc.Add(item);
     if (p1.f000018 != null)
     {
         p1.f000018.m000051(item);
     }
     else
     {
         p1.f000018 = new c000191(new c000189[] { item });
     }
     string str = m00027b().ReadLine();
     cc.m000004(int.Parse(str.Replace(';', '\0')));
     cc.m00029c(new c000131[cc.m00000f()]);
     string[] strArray = m000079(";;").Split(new char[] { ',' });
     for (num = 0; num < strArray.Length; num++)
     {
         strArray[num] = strArray[num].Replace("\r\n", "");
         strArray2 = strArray[num].Split(";".ToCharArray());
         c000131 c2 = new c000131();
         c2.m000025(float.Parse(strArray2[0]));
         c2.m000029(float.Parse(strArray2[1]));
         c2.m00002d(-float.Parse(strArray2[2]));
         cc.m000096()[num] = c2;
     }
     str = m00027b().ReadLine();
     cc.m00004b(int.Parse(str.Replace(';', '\0')));
     cc.m00029c(new c000194[cc.m000010()]);
     strArray = m000079(";;").Split(";".ToCharArray());
     int index = 0;
     for (num = 0; num < strArray.Length; num += 2)
     {
         if (strArray[num] == "")
         {
             break;
         }
         strArray[num] = strArray[num].Replace(",\r\n", "").Trim();
         strArray2 = strArray[num + 1].Split(",".ToCharArray());
         c000194 c3 = new c000194();
         c3.m000004(int.Parse(strArray[num].Trim()));
         c3.m000004(new int[c3.m00000f()]);
         for (int i = 0; i < c3.m00000f(); i++)
         {
             c3.m00029e()[i] = int.Parse(strArray2[i].Trim());
         }
         cc.m0002a4()[index] = c3;
         index++;
     }
     m000062().m000140(cc);
     if (m000062().m000252().m000092() == "")
     {
         m000062().m000252().m000080(cc.m000092());
     }
     string str2 = "";
     do
     {
         str2 = m00027b().ReadLine();
         if ((str2 != "") && !str2.ToLower().Contains("//"))
         {
             if (str2.ToLower().Contains("meshnormals"))
             {
                 m000047();
             }
             else if (str2.ToLower().Contains("meshmateriallist"))
             {
                 m000031();
             }
             else if (str2.ToLower().Contains("meshtexturecoords"))
             {
                 m0000ae();
             }
         }
     }
     while (!str2.Contains("}"));
     return m000062().m000289(p1);
 }
Пример #2
0
 private static void m000047()
 {
     int num;
     string[] strArray2;
     c000193 c = new c000193();
     string str = m00027b().ReadLine();
     c.m000004(int.Parse(str.Replace(';', '\0')));
     c.m00029c(new c000131[c.m00000f()]);
     string[] strArray = m000079(";;").Split(new char[] { ',' });
     for (num = 0; num < strArray.Length; num++)
     {
         strArray[num] = strArray[num].Replace("\r\n", "");
         strArray2 = strArray[num].Split(";".ToCharArray());
         c000131 c2 = new c000131();
         c2.m000025(float.Parse(strArray2[0]));
         c2.m000029(float.Parse(strArray2[1]));
         c2.m00002d(-float.Parse(strArray2[2]));
         c.m000096()[num] = c2;
     }
     str = m00027b().ReadLine();
     c.m00004b(int.Parse(str.Replace(';', '\0')));
     c.m00029c(new c000194[c.m000010()]);
     strArray = m000079(";;").Split(";".ToCharArray());
     int index = 0;
     for (num = 0; num < strArray.Length; num += 2)
     {
         if (strArray[num] == "")
         {
             break;
         }
         strArray[num] = strArray[num].Replace(",\r\n", "").Trim();
         strArray2 = strArray[num + 1].Split(",".ToCharArray());
         c000194 c3 = new c000194();
         c3.m000004(int.Parse(strArray[num].Trim()));
         c3.m000004(new int[c3.m00000f()]);
         for (int i = 0; i < c3.m00000f(); i++)
         {
             c3.m00029e()[i] = int.Parse(strArray2[i].Trim());
         }
         c.m00029d()[index] = c3;
         index++;
     }
     while (!m00027b().ReadLine().Contains("}"))
     {
     }
     m000062().m000069(c);
 }