コード例 #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);
            }
        }
コード例 #2
0
ファイル: Armature.cs プロジェクト: reignstudios/ReignSDK
        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);
            }
        }
コード例 #3
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);
 }
コード例 #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);
     }
 }