Exemplo n.º 1
0
        public void Read(AssetStream stream)
        {
            if (IsReadBlendType(stream.Version))
            {
                BlendType = stream.ReadUInt32();
            }
            BlendEventID = stream.ReadUInt32();
            if (IsReadBlendEventYID(stream.Version))
            {
                BlendEventYID = stream.ReadUInt32();
            }
            m_childIndices = stream.ReadUInt32Array();
            if (IsReadChildThresholdArray(stream.Version))
            {
                m_childThresholdArray = stream.ReadSingleArray();
            }

            if (IsReadBlendData(stream.Version))
            {
                Blend1dData.Read(stream);
                Blend2dData.Read(stream);
            }
            if (IsReadBlendDirectData(stream.Version))
            {
                BlendDirectData.Read(stream);
            }

            ClipID = stream.ReadUInt32();
            if (IsReadClipIndex(stream.Version))
            {
                ClipIndex = stream.ReadUInt32();
            }

            Duration = stream.ReadSingle();
            if (IsReadCycleOffset(stream.Version))
            {
                CycleOffset = stream.ReadSingle();
                Mirror      = stream.ReadBoolean();
                stream.AlignStream(AlignType.Align4);
            }
        }
Exemplo n.º 2
0
        public void Read(AssetReader reader)
        {
            if (IsReadBlendType(reader.Version))
            {
                BlendType = (BlendTreeType)reader.ReadUInt32();
            }
            BlendEventID = reader.ReadUInt32();
            if (IsReadBlendEventYID(reader.Version))
            {
                BlendEventYID = reader.ReadUInt32();
            }
            m_childIndices = reader.ReadUInt32Array();
            if (IsReadChildThresholdArray(reader.Version))
            {
                m_childThresholdArray = reader.ReadSingleArray();
            }

            if (IsReadBlendData(reader.Version))
            {
                Blend1dData.Read(reader);
                Blend2dData.Read(reader);
            }
            if (IsReadBlendDirectData(reader.Version))
            {
                BlendDirectData.Read(reader);
            }

            ClipID = reader.ReadUInt32();
            if (IsReadClipIndex(reader.Version))
            {
                ClipIndex = reader.ReadUInt32();
            }

            Duration = reader.ReadSingle();
            if (IsReadCycleOffset(reader.Version))
            {
                CycleOffset = reader.ReadSingle();
                Mirror      = reader.ReadBoolean();
                reader.AlignStream(AlignType.Align4);
            }
        }
Exemplo n.º 3
0
        public void Read(EndianStream stream)
        {
            BlendType      = stream.ReadUInt32();
            BlendEventID   = stream.ReadUInt32();
            BlendEventYID  = stream.ReadUInt32();
            m_childIndices = stream.ReadUInt32Array();
            Blend1dData.Read(stream);
            Blend2dData.Read(stream);
            if (IsReadBlendData)
            {
                BlendDirectData.Read(stream);
            }

            ClipID = stream.ReadUInt32();
            if (IsReadClipIndex)
            {
                ClipIndex = stream.ReadUInt32();
            }

            Duration    = stream.ReadSingle();
            CycleOffset = stream.ReadSingle();
            Mirror      = stream.ReadBoolean();
            stream.AlignStream(AlignType.Align4);
        }