struct WritingAdditions::Map::Node

Overview

Structure of a node.

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, nodes : Array(::WAD::Map::Node)) : ::WAD::Directory #

Writes a list of nodes given an output io and the nodes to write and returns the written directory

Writes nodes in my_wad to a file:

my_wad = WAD.read("Path/To/Wad")
WAD::Map::Node.write("Path/To/nodes.lmp", my_wad.maps["MyMap"].nodes)

def self.write(io : IO, nodes : Array(::WAD::Map::Node)) : ::WAD::Directory #

Writes a list of nodes given an output io and the nodes to write and returns the written directory

Writes nodes in my_wad to a file:

my_wad = WAD.read("Path/To/Wad")
File.open("Path/To/nodes.lmp", "w+") do |file|
  WAD::Map::Node.write(my_wad.maps["MyMap"].nodes)
end

Instance Method Detail

def initialize #