WritingAdditions::Flat
A WAD flat
Instance methods
write(file : String | Path) : UInt32
Writes a playpal given an output io and returns the size of the written lump
Writes a playpal in my_wad to a file:
my_wad = WAD.read("Path/To/Wad")
my_wad.flats["MyFlat"].write("Path/To/flat.lmp")
write(io : IO) : UInt32
Writes a flat given an output io and returns the size of the written lump
Writes a flat in my_wad to a file:
my_wad = WAD.read("Path/To/Wad")
File.open("Path/To/flat.lmp", "w+") do |file|
my_wad.flats["MyFlat"].write(file)
end