Exemplo n.º 1
0
 public void m00013b(c0000a8 p0, string p1)
 {
     p0.m000141(this.X);
     p0.m000142(this.Y);
     p0.m000143(this.Z);
     p0.m000025(this.RotationX);
     p0.m000029(this.RotationY);
     p0.m00002d(this.RotationZ);
     p0.m00025a(this.RelativeX);
     p0.m00025b(this.RelativeY);
     p0.m00025c(this.RelativeZ);
     p0.m000260(this.RelativeRotationX);
     p0.m000261(this.RelativeRotationY);
     p0.m000262(this.RelativeRotationZ);
     p0.m000375(this.ScaleX);
     p0.m000376(this.ScaleY);
     p0.m00025a(this.ScaleZ);
     p0.m00007f(this.Name);
     p0.f000170 = this.IsAutomaticallyUpdated;
     p0.m0000c0(this.CursorSelectable);
     for (int i = 0; i < this.ModelMeshSaves.Count; i++)
     {
         for (int j = 0; j < this.ModelMeshSaves[i].f00005b.Count; j++)
         {
             c0000b1 cb = this.ModelMeshSaves[i].f00005b[j];
             if (!string.IsNullOrEmpty(cb.f000007))
             {
                 string str = cb.f000007;
                 string path = c000091.m000084() + str;
                 if (!File.Exists(path))
                 {
                     str = c000091.m000129(str);
                     if (!File.Exists(c000091.m000129(path) + ".xnb"))
                     {
                         throw new FileNotFoundException("Can't find either the .xnb or .fx of " + str);
                     }
                     p0.m000298().Meshes[i].MeshParts[j].Effect = c000074.m0000e6<Effect>(str, p1).Clone(c000074.m0000d4());
                     p0.m000298().Meshes[i].MeshParts[j].Tag = str;
                 }
                 else
                 {
                     p0.m000298().Meshes[i].MeshParts[j].Effect = c000074.m0000e6<Effect>(cb.f000007, p1).Clone(c000074.m0000d4());
                     p0.m000298().Meshes[i].MeshParts[j].Tag = cb.f000007;
                 }
             }
             if (!string.IsNullOrEmpty(cb.f000006))
             {
                 Renderer.m00010c(p0.m000298().Meshes[i].MeshParts[j].Effect, c000074.m0000e6<Texture2D>(cb.f000006, p1));
             }
         }
     }
     foreach (string str in this.ExtraFiles)
     {
         p0.m00008a().Add(c000091.m000084() + str);
     }
 }