module

WritingAdditions::Map::Blockmap

Class of a blockmap.

Instance methods

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

Writes a blockmap given an output io and the blockmap to write and returns the written directory

Writes blockmap in my_wad to a file:

my_wad = WAD.read("Path/To/Wad")
my_wad.maps["MyMap"].blockmap.write("Path/To/blockmap.lmp")
write(io : IO) : ::WAD::Directory

Writes a blockmap given an output io and the blockmap to write and returns the written directory

Writes blockmap in my_wad to a file:

my_wad = WAD.read("Path/To/Wad")
File.open("Path/To/blockmap.lmp", "w+") do |file|
  my_wad.maps["MyMap"].blockmap.write(file)
end