class WAD::Map::Reject
- WAD::Map::Reject
- Reference
- Object
Overview
Class of a reject.
Included Modules
Defined in:
wa-cr/wad/wad-data/map.crwrite.cr
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
Instance Method Summary
-
#[](x : Int, y : Int)
Outputs the truthiness of the bit at the given x, y.
- #byte_data : Array(UInt8)
- #byte_data=(byte_data : Array(UInt8))
-
#clone
Returns a copy of
self
with all instance variables cloned. - #data : BitArray
- #data=(data : BitArray)
Instance methods inherited from module WritingAdditions::Map::Reject
write(file : String | Path) : ::WAD::Directorywrite(io : IO) : ::WAD::Directory write
Constructor Detail
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