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 #

[View source]

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)

[View source]
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

[View source]

Instance Method Detail

def initialize #

[View source]