module WritingAdditions::Map::Blockmap
Overview
Class of a blockmap.
Direct including types
Defined in:
write/write_map.crInstance Method Summary
-
#write(file : String | Path) : ::WAD::Directory
Writes a blockmap given an output io and the blockmap to write and returns the written directory
-
#write(io : IO) : ::WAD::Directory
Writes a blockmap given an output io and the blockmap to write and returns the written directory
Instance Method Detail
def 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")
def 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