module

WritingAdditions::Pnames

Includes all the names for wall patches.

Instance methods

write(file : String | Path) : UInt32

Writes a pnames given an output io and returns the size of the written lump

Writes a pnames in my_wad to a file:

my_wad = WAD.read("Path/To/Wad")
my_wad.pnames.write("Path/To/pnames.lmp")
write(io : IO) : UInt32

Writes a pnames given an output io and returns the size of the written lump

Writes a pnames in my_wad to a file:

my_wad = WAD.read("Path/To/Wad")
File.open("Path/To/pnames.lmp", "w+") do |file|
  my_wad.pnames.write(file)
end