struct WAD::Map::Ssector
- WAD::Map::Ssector
- Struct
- Value
- Object
Overview
Structure of a ssector.
Defined in:
wa-cr/wad/wad-data/map.crConstructors
Class Method Summary
-
.parse(io : IO, lump_size : Int) : Array(Ssector)
Parses a ssectors list given the io and the size
-
.parse(filename : String | Path) : Array(Ssector)
Parses a ssectors list given the filename
Instance Method Summary
-
#clone
Returns a copy of
self
with all instance variables cloned. - #first_seg_num : Int16
- #first_seg_num=(first_seg_num : Int16)
- #initialize
- #seg_count : Int16
- #seg_count=(seg_count : Int16)
Constructor Detail
Class Method Detail
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
Parses a ssectors list given the filename
Opens a ssectors lump and parses it:
my_ssectors = WAD::Map::Ssector.parse("Path/To/Ssector")