struct WAD::Map::Vertex
- WAD::Map::Vertex
- Struct
- Value
- Object
Overview
Structure of a vertex.
Defined in:
wa-cr/wad/wad-data/map.crConstructors
Class Method Summary
-
.parse(io : IO, lump_size : Int) : Array(Vertex)
Parses a vertexes list given the io and the size
-
.parse(filename : String | Path) : Array(Vertex)
Parses a vertexes list given the filename
Instance Method Summary
-
#clone
Returns a copy of
self
with all instance variables cloned. - #initialize
- #x_position : Int16
- #x_position=(x_position : Int16)
- #y_position : Int16
- #y_position=(y_position : Int16)
Constructor Detail
Class Method Detail
Parses a vertexes list given the io and the size
Opens a vertexes lump and parses it:
File.open("Path/To/Vertex") do |file|
my_vertexes = WAD::Map::Vertex.parse(file, file.size)
end
Parses a vertexes list given the filename
Opens a vertexes lump and parses it:
my_vertexes = WAD::Map::Vertex.parse("Path/To/Vertex")