Esempio n. 1
0
        private void ReadVisData(InternalBspLump lump, BinaryReader reader)
        {
            reader.BaseStream.Seek(lump.offset, SeekOrigin.Begin);

            this.visData = new InternalBspVis();
            this.visData.clusterCount = reader.ReadInt32();
            this.visData.rowSize      = reader.ReadInt32();
            this.visData.data         = reader.ReadBytes(lump.offset - (typeof(int).Size() * 2));
        }
Esempio n. 2
0
		private void ReadVisData( InternalBspLump lump, BinaryReader reader )
		{
			reader.BaseStream.Seek( lump.offset, SeekOrigin.Begin );

			this.visData = new InternalBspVis();
			this.visData.clusterCount = reader.ReadInt32();
			this.visData.rowSize = reader.ReadInt32();
			this.visData.data = reader.ReadBytes( lump.offset - ( typeof ( int ).Size()*2 ) );
		}