class WAD::Map::Reject

Overview

Class of a reject.

Included Modules

Defined in:

wa-cr/wad/wad-data/map.cr
write.cr

Constructors

Instance Method Summary

Instance methods inherited from module WritingAdditions::Map::Reject

write(file : String | Path) : ::WAD::Directory
write(io : IO) : ::WAD::Directory
write

Constructor Detail

def self.new(data : BitArray = BitArray.new(0)) #

def self.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 Method Detail

def [](x : Int, y : Int) #

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


def byte_data : Array(UInt8) #

def byte_data=(byte_data : Array(UInt8)) #

def clone #

Returns a copy of self with all instance variables cloned.


def data : BitArray #

def data=(data : BitArray) #