struct WAD::Map::Vertex

Overview

Structure of a vertex.

Defined in:

wa-cr/wad/wad-data/map.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

Class Method Detail

def self.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

def self.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 Method Detail

def clone #

Returns a copy of self with all instance variables cloned.


def initialize #

def x_position : Int16 #

def x_position=(x_position : Int16) #

def y_position : Int16 #

def y_position=(y_position : Int16) #