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