WAD::Map::Ssector
Inherits Struct < Value < Object
Structure of a ssector.
Constructors
new
Class methods
parse(io : IO, lump_size : Int) : Array(Ssector)
Parses a ssectors list given the io and the size
Opens a ssectors lump and parses it:
File.open("Path/To/Ssector") do |file|
my_ssectors = WAD::Map::Ssector.parse(file, file.size)
end
parse(filename : String | Path) : Array(Ssector)
Parses a ssectors list given the filename
Opens a ssectors lump and parses it:
my_ssectors = WAD::Map::Ssector.parse("Path/To/Ssector")
Instance methods
clone
Returns a copy of self with all instance variables cloned.
first_seg_num
first_seg_num=(first_seg_num : Int16)
initialize
seg_count
seg_count=(seg_count : Int16)