Esempio 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);
            }
        }
Esempio 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);
 }
 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);
     }
 }