struct WritingAdditions::Map::Linedef
- WritingAdditions::Map::Linedef
- Struct
- Value
- Object
Overview
Structure of a linedef.
Defined in:
write/write_map.crConstructors
Class Method Summary
-
.write(file : String | Path, linedefs : Array(::WAD::Map::Linedef)) : ::WAD::Directory
Writes a list of linedefs given an output io and the linedefs to write and returns the written directory
-
.write(io : IO, linedefs : Array(::WAD::Map::Linedef)) : ::WAD::Directory
Writes a list of linedefs given an output io and the linedefs to write and returns the written directory
Instance Method Summary
Constructor Detail
Class Method Detail
Writes a list of linedefs given an output io and the linedefs to write and returns the written directory
Writes linedefs in my_wad to a file:
my_wad = WAD.read("Path/To/Wad")
WAD::Map::Linedef.write("Path/To/linedefs.lmp", my_wad.maps["MyMap"].linedefs)
Writes a list of linedefs given an output io and the linedefs to write and returns the written directory
Writes linedefs in my_wad to a file:
my_wad = WAD.read("Path/To/Wad")
File.open("Path/To/linedefs.lmp", "w+") do |file|
WAD::Map::Linedef.write(my_wad.maps["MyMap"].linedefs)
end