WAD::Map::Vertex
Inherits Struct < Value < Object
Structure of a vertex.
Constructors
new
Class methods
parse(io : IO, lump_size : Int) : Array(Vertex)
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
parse(filename : String | Path) : Array(Vertex)
Parses a vertexes list given the filename
Opens a vertexes lump and parses it:
my_vertexes = WAD::Map::Vertex.parse("Path/To/Vertex")
Instance methods
clone
Returns a copy of self with all instance variables cloned.
initialize
x_position
x_position=(x_position : Int16)
y_position
y_position=(y_position : Int16)