WritingAdditions::Map::Sector
Inherits Struct < Value < Object
Structure of a sector.
Constructors
new
Class methods
Writes a list of sectors given an output io and the sectors to write and returns the written directory
Writes sectors in my_wad to a file:
my_wad = WAD.read("Path/To/Wad")
WAD::Map::Sector.write("Path/To/sectors.lmp", my_wad.maps["MyMap"].sectors)
Writes a list of sectors given an output io and the sectors to write and returns the written directory
Writes sectors in my_wad to a file:
my_wad = WAD.read("Path/To/Wad")
File.open("Path/To/sectors.lmp", "w+") do |file|
WAD::Map::Sector.write(my_wad.maps["MyMap"].sectors)
end
Instance methods
initialize