Axiom.Serialization.OgreSkeletonSerializer.ReadBoneParent C# (CSharp) Метод

ReadBoneParent() защищенный Метод

Reads bone information from the file.
protected ReadBoneParent ( BinaryReader reader ) : void
reader BinaryReader
Результат void
		protected void ReadBoneParent( BinaryReader reader )
		{
			// all bones should have been created by this point, so this establishes the heirarchy
			Bone child, parent;
			ushort childHandle, parentHandle;

			// child bone
			childHandle = ReadUShort( reader );

			// parent bone
			parentHandle = ReadUShort( reader );

			// get references to father and son bones
			parent = skeleton.GetBone( parentHandle );
			child = skeleton.GetBone( childHandle );

			// attach the child to the parent
			parent.AddChild( child );
		}