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