WAD::Map::Sector
Inherits Struct < Value < Object
Structure of a sector.
Constructors
new
Class methods
parse(io : IO, lump_size : Int) : Array(Sector)
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
parse(filename : String | Path) : Array(Sector)
Parses a sectors list given the filename
Opens a sectors lump and parses it:
my_sectors = WAD::Map::Sector.parse("Path/To/Sector")
Instance methods
ceiling_height
ceiling_height=(ceiling_height : Int16)
clone
Returns a copy of self with all instance variables cloned.
floor_height
floor_height=(floor_height : Int16)
initialize
light_level
light_level=(light_level : Int16)
name_tex_ceiling
name_tex_ceiling=(name_tex_ceiling : String)
name_tex_floor
name_tex_floor=(name_tex_floor : String)
special_type
special_type=(special_type : Int16)
tag_num
tag_num=(tag_num : Int16)