public void LoadFrom(Stream stream)
        {
            BinaryReader reader = new BinaryReader(stream);

            m_BlendType     = reader.ReadUInt32();
            m_BlendEventID  = reader.ReadUInt32();
            m_BlendEventYID = reader.ReadUInt32();
            m_ChildIndices  = reader.ReadUInt32Array(reader.ReadInt32());
            m_Blend1dData   = new Blend1dDataConstant(stream);
            m_Blend2dData   = new Blend2dDataConstant(stream);
            m_ClipID        = reader.ReadUInt32();
            m_ClipIndex     = reader.ReadUInt32();
            m_Duration      = reader.ReadSingle();
            m_CycleOffset   = reader.ReadSingle();
            m_Mirror        = reader.ReadBoolean();
            reader.ReadBytes(3);
        }
Exemple #2
0
        public void LoadFrom(Stream stream, uint version)
        {
            BinaryReader reader = new BinaryReader(stream);

            m_BlendType     = reader.ReadUInt32();
            m_BlendEventID  = reader.ReadUInt32();
            m_BlendEventYID = reader.ReadUInt32();
            m_ChildIndices  = reader.ReadUInt32Array(reader.ReadInt32());
            m_Blend1dData   = new Blend1dDataConstant(stream);
            m_Blend2dData   = new Blend2dDataConstant(stream);
            if (version >= AssetCabinet.VERSION_5_0_0)
            {
                m_BlendDirectData = new BlendDirectDataConstant(stream);
            }
            m_ClipID = reader.ReadUInt32();
            if (version < AssetCabinet.VERSION_5_0_0)
            {
                m_ClipIndex = reader.ReadUInt32();
            }
            m_Duration       = reader.ReadSingle();
            m_CycleOffset    = reader.ReadSingle();
            m_Mirror         = reader.ReadBoolean();
            stream.Position += 3;
        }
 public void LoadFrom(Stream stream)
 {
     BinaryReader reader = new BinaryReader(stream);
     m_BlendType = reader.ReadUInt32();
     m_BlendEventID = reader.ReadUInt32();
     m_BlendEventYID = reader.ReadUInt32();
     m_ChildIndices = reader.ReadUInt32Array(reader.ReadInt32());
     m_Blend1dData = new Blend1dDataConstant(stream);
     m_Blend2dData = new Blend2dDataConstant(stream);
     m_ClipID = reader.ReadUInt32();
     m_ClipIndex = reader.ReadUInt32();
     m_Duration = reader.ReadSingle();
     m_CycleOffset = reader.ReadSingle();
     m_Mirror = reader.ReadBoolean();
     reader.ReadBytes(3);
 }