WAD::Map::Blockmap
Inherits WritingAdditions::Map::Blockmap < Reference < Object
Class of a blockmap.
Constructors
parse(io : IO, lump_size : Int) : Blockmap
Parses a blockmap list given the io and the size
Opens a blockmap lump and parses it:
File.open("Path/To/Blockmap") do |file|
my_blockmap = WAD::Map::Blockmap.parse(file, file.size)
end
Instance methods
blocklists
blocklists=(blocklists : Array(Blocklist))
clone
Returns a copy of self with all instance variables cloned.
header
header=(header : Header)
num_of_blocks
There are N blocks, which is equal to columns × rows (from the header).
offsets
offsets=(offsets : Array(Int16))