module WritingAdditions::Map::Reject
Overview
Class of a reject.
Direct including types
Defined in:
write/write_map.crInstance Method Summary
-
#write(file : String | Path) : ::WAD::Directory
Writes a reject given an output io and the reject to write and returns the written directory
-
#write(io : IO) : ::WAD::Directory
Writes a reject given an output io and the reject to write and returns the written directory
Instance Method Detail
def write(file : String | Path) : ::WAD::Directory
#
Writes a reject given an output io and the reject to write and returns the written directory
Writes reject in my_wad to a file:
my_wad = WAD.read("Path/To/Wad")
my_wad.maps["MyMap"].reject.write("Path/To/reject.lmp")
def write(io : IO) : ::WAD::Directory
#
Writes a reject given an output io and the reject to write and returns the written directory
Writes reject in my_wad to a file:
my_wad = WAD.read("Path/To/Wad")
File.open("Path/To/reject.lmp", "w+") do |file|
my_wad.maps["MyMap"].reject.write(file)
end