struct WritingAdditions::Map::Vertex

Overview

Structure of a vertex.

Defined in:

write/write_map.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

Class Method Detail

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

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)

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

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

Instance Method Detail

def initialize #