public override void Read(BinaryReader file, uint size) { base.Read(file, size); buffername.Read(file, 2); count.Read(file, size); unk.Read(file, 1); buffer.Read(file, 0, count.val); }
public override void Read(BinaryReader file, uint size) { type.Read(file, 1); flags.Read(file, 1); radius.Read(file, 2); offset.Read(file, 8); positionX.Read(file, 4); positionY.Read(file, 4); positionZ.Read(file, 4); }
public override void Read(BinaryReader file, uint size) { var startpos = file.BaseStream.Position; base.Read(file, size); var endpos = file.BaseStream.Position; var bytesread = endpos - startpos; if (bytesread < size) { buffername.Read(file, 2); count.Read(file, size); unk.Read(file, 1); buffer.Read(file, 0, count.val); } else if (bytesread > size) { } }
public override void Read(BinaryReader file, uint size) { someName.Read(file, size); byte count = file.ReadByte(); if (count > 4) { Debug.Print("Curve piece count out of bounds: " + count + ", using as 4"); count = 4; } someByte.Read(file, size); for (int i = 0; i < count; i++) { var piece = new CurvePiece(cr2w) { Name = i.ToString(), Type = "CurvePiece" }; piece.Read(file, size); pieces.Add(piece); } }
public override void Read(BinaryReader file, uint size) { unk1.Read(file, size); unk2.Read(file, size); name.Read(file, size); }