DatDigger.Sections.Animation.SpuChunkData.Load C# (CSharp) Method

Load() public method

public Load ( BinaryReaderEx reader, int index ) : void
reader BinaryReaderEx
index int
return void
        public void Load(BinaryReaderEx reader, int index)
        {
            this.Index = index;

            Offset = reader.ReadInt32(Endianness.BigEndian);
            Length = reader.ReadInt16(Endianness.BigEndian);
            NumChildren = reader.ReadByte();
            NumChildren++;
            Flag = reader.ReadByte();
        }

Usage Example

Beispiel #1
0
 public void LoadChunks(BinaryReaderEx reader)
 {
     for (var i = 0; i < NumChunks; i++)
     {
         SpuChunkData chunk = new SpuChunkData();
         chunk.Load(reader, i);
         chunk.Parent = this;
         this.Chunks.Add(chunk);
     }
 }
All Usage Examples Of DatDigger.Sections.Animation.SpuChunkData::Load