Exemplo n.º 1
0
        public static void Write(BinaryWriter writer, SoftwareArmature softwareArmature)
        {
            writer.Write(softwareArmature.Name);

            writer.Write(softwareArmature.Bones.Count);
            foreach (var bone in softwareArmature.Bones)
            {
                Bone.Write(writer, bone);
            }
        }
Exemplo n.º 2
0
        public static void Write(BinaryWriter writer, SoftwareArmature softwareArmature)
        {
            writer.Write(softwareArmature.Name);

            writer.Write(softwareArmature.Bones.Count);
            foreach (var bone in softwareArmature.Bones)
            {
                Bone.Write(writer, bone);
            }
        }
 public SoftwareObjectArmature(SoftwareModel model, RMX_Object o)
     : base(model, o)
 {
     // find armature
     foreach (var armature in model.Armatures)
     {
         if (o.Armature.Name == armature.Name)
         {
             Armature = armature;
             break;
         }
     }
     if (Armature == null) Debug.ThrowError("SoftwareObjectArmature", "Failed to find Armature: " + o.Armature.Name);
 }
Exemplo n.º 4
0
 public SoftwareObjectArmature(SoftwareModel model, RMX_Object o)
     : base(model, o)
 {
     // find armature
     foreach (var armature in model.Armatures)
     {
         if (o.Armature.Name == armature.Name)
         {
             Armature = armature;
             break;
         }
     }
     if (Armature == null)
     {
         Debug.ThrowError("SoftwareObjectArmature", "Failed to find Armature: " + o.Armature.Name);
     }
 }