struct WritingAdditions::Map::Thing

Overview

Structure of a thing.

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

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

Writes things in my_wad to a file:

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

def self.write(io : IO, things : Array(::WAD::Map::Thing)) : ::WAD::Directory #

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

Writes things in my_wad to a file:

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

Instance Method Detail

def initialize #