Пример #1
0
 public c0000da(Model p0, c0000b5 p1, c0000db p2)
 {
     this.f00008e = p1;
     this.f000018 = p2;
     this.f00007a = new Dictionary<string, c0000dc>();
     foreach (string str in this.f00008e.Keys)
     {
         this.f00007a.Add(str, new c0000dc(this.f00008e[str]));
     }
     this.f0000e1 = new Matrix[p0.Bones.Count];
     p0.CopyAbsoluteBoneTransformsTo(this.f0000e1);
     Dictionary<string, object> tag = (Dictionary<string, object>) p0.Tag;
     if (tag == null)
     {
         throw new Exception("Model Processor must subclass AnimatedModelProcessor.");
     }
     this.f00013c = (c00008f[]) tag["SkinInfo"];
     if (this.f00013c == null)
     {
         throw new Exception("Model processor must pass skinning info through the tag.");
     }
     this.f00013d = new Matrix[p0.Meshes.Count][];
     for (int i = 0; i < this.f00013c.Length; i++)
     {
         if (c0000dd.m0001a9(p0.Meshes[i]))
         {
             this.f00013d[i] = new Matrix[this.f00013c[i].Count];
         }
         else
         {
             this.f00013d[i] = null;
         }
     }
 }
Пример #2
0
 internal c0000de(ModelBone p0, ModelBoneCollection p1, c0000de[] p2)
 {
     this.f00000b = p0.Index;
     this.f000006 = p0.Name;
     this.f0000e1 = p0.Transform;
     if (p0.Parent != null)
     {
         this.f000028 = p2[p0.Parent.Index];
     }
     p2[this.f00000b] = this;
     List<c0000de> list = new List<c0000de>();
     foreach (ModelBone bone in p0.Children)
     {
         c0000de item = new c0000de(p1[bone.Index], p1, p2);
         list.Add(item);
     }
     this.f000018 = new c0000db(list);
 }