public void Read(AssetReader reader)
 {
     AvatarSkeleton.Read(reader);
     AvatarSkeletonPose.Read(reader);
     if (HasDefaultPose(reader.Version))
     {
         DefaultPose.Read(reader);
         SkeletonNameIDArray = reader.ReadUInt32Array();
     }
     Human.Read(reader);
     HumanSkeletonIndexArray = reader.ReadInt32Array();
     if (HasHumanSkeletonReverseIndexArray(reader.Version))
     {
         HumanSkeletonReverseIndexArray = reader.ReadInt32Array();
     }
     else
     {
         HumanSkeletonReverseIndexArray = new int[AvatarSkeleton.Instance.Node.Length];
         for (int i = 0; i < AvatarSkeleton.Instance.Node.Length; i++)
         {
             HumanSkeletonReverseIndexArray[i] = HumanSkeletonIndexArray.IndexOf(i);
         }
     }
     RootMotionBoneIndex = reader.ReadInt32();
     RootMotionBoneX.Read(reader);
     if (HasRootMotionSkeleton(reader.Version))
     {
         RootMotionSkeleton.Read(reader);
         RootMotionSkeletonPose.Read(reader);
         RootMotionSkeletonIndexArray = reader.ReadInt32Array();
     }
 }
 public void Read(AssetReader reader)
 {
     AvatarSkeleton.Read(reader);
     AvatarSkeletonPose.Read(reader);
     if (IsReadDefaultPose(reader.Version))
     {
         DefaultPose.Read(reader);
         m_skeletonNameIDArray = reader.ReadUInt32Array();
     }
     Human.Read(reader);
     m_humanSkeletonIndexArray = reader.ReadInt32Array();
     if (IsReadHumanSkeletonReverseIndexArray(reader.Version))
     {
         m_humanSkeletonReverseIndexArray = reader.ReadInt32Array();
     }
     else
     {
         m_humanSkeletonReverseIndexArray = new int[AvatarSkeleton.Instance.Node.Count];
         for (int i = 0; i < AvatarSkeleton.Instance.Node.Count; i++)
         {
             m_humanSkeletonReverseIndexArray[i] = m_humanSkeletonIndexArray.IndexOf(i);
         }
     }
     RootMotionBoneIndex = reader.ReadInt32();
     RootMotionBoneX.Read(reader);
     if (IsReadRootMotionSkeleton(reader.Version))
     {
         RootMotionSkeleton.Read(reader);
         RootMotionSkeletonPose.Read(reader);
         m_rootMotionSkeletonIndexArray = reader.ReadInt32Array();
     }
 }
Beispiel #3
0
 public void Read(EndianStream stream)
 {
     AvatarSkeleton.Read(stream);
     AvatarSkeletonPose.Read(stream);
     DefaultPose.Read(stream);
     m_skeletonNameIDArray = stream.ReadUInt32Array();
     Human.Read(stream);
     m_humanSkeletonIndexArray        = stream.ReadInt32Array();
     m_humanSkeletonReverseIndexArray = stream.ReadInt32Array();
     RootMotionBoneIndex = stream.ReadInt32();
     RootMotionBoneX.Read(stream);
     RootMotionSkeleton.Read(stream);
     RootMotionSkeletonPose.Read(stream);
     m_rootMotionSkeletonIndexArray = stream.ReadInt32Array();
 }
Beispiel #4
0
 public void Read(AssetStream stream)
 {
     AvatarSkeleton.Read(stream);
     AvatarSkeletonPose.Read(stream);
     if (IsReadDefaultPose(stream.Version))
     {
         DefaultPose.Read(stream);
         m_skeletonNameIDArray = stream.ReadUInt32Array();
     }
     Human.Read(stream);
     m_humanSkeletonIndexArray = stream.ReadInt32Array();
     if (IsReadHumanSkeletonReverseIndexArray(stream.Version))
     {
         m_humanSkeletonReverseIndexArray = stream.ReadInt32Array();
     }
     RootMotionBoneIndex = stream.ReadInt32();
     RootMotionBoneX.Read(stream);
     if (IsReadRootMotionSkeleton(stream.Version))
     {
         RootMotionSkeleton.Read(stream);
         RootMotionSkeletonPose.Read(stream);
         m_rootMotionSkeletonIndexArray = stream.ReadInt32Array();
     }
 }
Beispiel #5
0
 public void Read(AssetReader reader)
 {
     AvatarSkeleton.Read(reader);
     AvatarSkeletonPose.Read(reader);
     if (IsReadDefaultPose(reader.Version))
     {
         DefaultPose.Read(reader);
         m_skeletonNameIDArray = reader.ReadUInt32Array();
     }
     Human.Read(reader);
     m_humanSkeletonIndexArray = reader.ReadInt32Array();
     if (IsReadHumanSkeletonReverseIndexArray(reader.Version))
     {
         m_humanSkeletonReverseIndexArray = reader.ReadInt32Array();
     }
     RootMotionBoneIndex = reader.ReadInt32();
     RootMotionBoneX.Read(reader);
     if (IsReadRootMotionSkeleton(reader.Version))
     {
         RootMotionSkeleton.Read(reader);
         RootMotionSkeletonPose.Read(reader);
         m_rootMotionSkeletonIndexArray = reader.ReadInt32Array();
     }
 }