Ejemplo n.º 1
0
        private void ReadBrushSides(InternalBspLump lump, BinaryReader reader)
        {
            reader.BaseStream.Seek(lump.offset, SeekOrigin.Begin);
            brushSides = new InternalBspBrushSide[lump.size / Marshal.SizeOf(typeof(InternalBspBrushSide))];

            for (int i = 0; i < brushSides.Length; i++)
            {
                brushSides[i]          = new InternalBspBrushSide();
                brushSides[i].planeNum = reader.ReadInt32();
                brushSides[i].content  = reader.ReadInt32();
            }
        }
Ejemplo n.º 2
0
		private void ReadBrushSides( InternalBspLump lump, BinaryReader reader )
		{
			reader.BaseStream.Seek( lump.offset, SeekOrigin.Begin );
			brushSides = new InternalBspBrushSide[ lump.size / Marshal.SizeOf( typeof( InternalBspBrushSide ) ) ];

			for ( int i = 0; i < brushSides.Length; i++ )
			{
				brushSides[ i ] = new InternalBspBrushSide();
				brushSides[ i ].planeNum = reader.ReadInt32();
				brushSides[ i ].content = reader.ReadInt32();
			}
		}