struct WritingAdditions::Map::Ssector
- WritingAdditions::Map::Ssector
- Struct
- Value
- Object
Overview
Structure of a ssector.
Defined in:
write/write_map.crConstructors
Class Method Summary
-
.write(file : String | Path, ssectors : Array(::WAD::Map::Ssector)) : ::WAD::Directory
Writes a list of ssectors given an output io and the ssectors to write and returns the written directory
-
.write(io : IO, ssectors : Array(::WAD::Map::Ssector)) : ::WAD::Directory
Writes a list of ssectors given an output io and the ssectors to write and returns the written directory
Instance Method Summary
Constructor Detail
Class Method Detail
Writes a list of ssectors given an output io and the ssectors to write and returns the written directory
Writes ssectors in my_wad to a file:
my_wad = WAD.read("Path/To/Wad")
WAD::Map::Ssector.write("Path/To/ssectors.lmp", my_wad.maps["MyMap"].ssectors)
Writes a list of ssectors given an output io and the ssectors to write and returns the written directory
Writes ssectors in my_wad to a file:
my_wad = WAD.read("Path/To/Wad")
File.open("Path/To/ssectors.lmp", "w+") do |file|
WAD::Map::Ssector.write(my_wad.maps["MyMap"].ssectors)
end