Esempio n. 1
0
 public void ReadFromStream(Stream stream)
 {
     Header = stream.ReadContent<YkdHeader>();
     Background = stream.ReadContent<YkdBlock>();
     Offsets = stream.ReadContent<YkdOffsets>();
     Blocks = new YkdBlock[Offsets.Count];
     for (int i = 0; i < Blocks.Length; i++)
     {
         stream.SetPosition(Offsets[i]);
         Blocks[i] = stream.ReadContent<YkdBlock>();
     }
     Resources = stream.ReadContent<YkdResources>();
 }
Esempio n. 2
0
 public void ReadFromStream(Stream stream)
 {
     BinaryReader br = new BinaryReader(stream);
     SamplesPerBlock = br.ReadInt16();
     CoefficientsCount = br.ReadInt16();
     Coefficients = stream.ReadContent<AdPcmCoefficientSet>(CoefficientsCount);
 }
Esempio n. 3
0
 public void ReadFromStream(Stream stream)
 {
     BinaryReader br = new BinaryReader(stream);
     Count = br.ReadInt32();
     Unknown1 = br.ReadInt32();
     Unknown2 = br.ReadInt32();
     Unknown3 = br.ReadInt32();
     Tails = stream.ReadContent<YkdBlockOptionalTail>(Count);
 }
Esempio n. 4
0
        public void ReadFromStream(Stream stream)
        {
            BinaryReader br = new BinaryReader(stream);

            Unknown1 = br.ReadInt32();
            Unknown2 = br.ReadInt32();
            int count = br.ReadInt32();
            Unknown3 = br.ReadInt32();

            int[] offsets = new int[count];
            for (int i = 0; i < count; i++)
                offsets[i] = br.ReadInt32();

            int alignment = ((4 - (count % 4)) % 4);
            for (int i = 0; i < alignment; i++)
                br.Check(r => r.ReadInt32(), 0);

            Frames = new YkdFrame[count];
            for (int i = 0; i < count; i++)
            {
                stream.SetPosition(offsets[i]);
                Frames[i] = stream.ReadContent<YkdFrame>();
            }
        }
Esempio n. 5
0
 public virtual void ReadFromStream(Stream stream)
 {
     SectionHeader = stream.ReadContent<SectionHeader>();
 }
Esempio n. 6
0
 public void ReadFromStream(Stream input)
 {
     Header = input.ReadContent<GtexHeader>();
     MipMapData = input.ReadContent<GtexMipMapLocation>(Header.LayerCount);
 }
Esempio n. 7
0
 public override void ReadFromStream(Stream input)
 {
     base.ReadFromStream(input);
     TextureHeader = input.ReadContent<TextureHeader>();
     Gtex = input.ReadContent<GtexData>();
 }