module WritingAdditions::Map

Overview

Map containing all directories of data lumps.

Direct including types

Defined in:

write/write_map.cr

Instance Method Summary

Instance Method Detail

def write(file : String | Path) : Array(::WAD::Directory) #

Writes a map given an output io and returns the directories of the written lumps

Writes a map in my_wad to a file:

my_wad = WAD.read("Path/To/Wad")
my_wad.maps["MyMap"].write("Path/To/map.lmp")

def write(io : IO) : Array(::WAD::Directory) #

Writes a map given an output io and returns the directories of the written lumps

Writes a map in my_wad to a file:

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