struct WAD::Map::Sector
- WAD::Map::Sector
- Struct
- Value
- Object
Overview
Structure of a sector.
Defined in:
wa-cr/wad/wad-data/map.crConstructors
Class Method Summary
-
.parse(io : IO, lump_size : Int) : Array(Sector)
Parses a sectors list given the io and the size
-
.parse(filename : String | Path) : Array(Sector)
Parses a sectors list given the filename
Instance Method Summary
- #ceiling_height : Int16
- #ceiling_height=(ceiling_height : Int16)
-
#clone
Returns a copy of
self
with all instance variables cloned. - #floor_height : Int16
- #floor_height=(floor_height : Int16)
- #initialize
- #light_level : Int16
- #light_level=(light_level : Int16)
- #name_tex_ceiling : String
- #name_tex_ceiling=(name_tex_ceiling : String)
- #name_tex_floor : String
- #name_tex_floor=(name_tex_floor : String)
- #special_type : Int16
- #special_type=(special_type : Int16)
- #tag_num : Int16
- #tag_num=(tag_num : Int16)
Constructor Detail
Class Method Detail
Parses a sectors list given the io and the size
Opens a sectors lump and parses it:
File.open("Path/To/Sector") do |file|
my_sectors = WAD::Map::Sector.parse(file, file.size)
end
Parses a sectors list given the filename
Opens a sectors lump and parses it:
my_sectors = WAD::Map::Sector.parse("Path/To/Sector")