struct WritingAdditions::Map::Node
- WritingAdditions::Map::Node
- Struct
- Value
- Object
Overview
Structure of a node.
Defined in:
write/write_map.crConstructors
Class Method Summary
-
.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
-
.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
Instance Method Summary
Constructor Detail
Class Method Detail
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)
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