module WritingAdditions::Pnames

Overview

Includes all the names for wall patches.

Direct including types

Defined in:

write/write_texture.cr

Instance Method Summary

Instance Method Detail

def 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")

def 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