class

WAD::Map::Reject

Inherits WritingAdditions::Map::Reject < Reference < Object

Class of a reject.

Constructors

new(data : BitArray = BitArray.new(0))
parse(io : IO, lump_size : Int, sectors : Int = 0) : Reject

Parses a reject list given the io and the size

Example: Opens a reject lump and parses it

File.open("Path/To/Reject") do |file|
  my_reject = WAD::Map::Reject.parse(file, file.size)
end

Instance methods

[](x : Int, y : Int)

Outputs the truthiness of the bit at the given x, y.

byte_data
byte_data=(byte_data : Array(UInt8))
clone

Returns a copy of self with all instance variables cloned.

data
data=(data : BitArray)