struct WAD::Map::Sector

Overview

Structure of a sector.

Defined in:

wa-cr/wad/wad-data/map.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

Class Method Detail

def self.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

def self.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 Method Detail

def ceiling_height : Int16 #

def ceiling_height=(ceiling_height : Int16) #

def clone #

Returns a copy of self with all instance variables cloned.


def floor_height : Int16 #

def floor_height=(floor_height : Int16) #

def initialize #

def light_level : Int16 #

def light_level=(light_level : Int16) #

def name_tex_ceiling : String #

def name_tex_ceiling=(name_tex_ceiling : String) #

def name_tex_floor : String #

def name_tex_floor=(name_tex_floor : String) #

def special_type : Int16 #

def special_type=(special_type : Int16) #

def tag_num : Int16 #

def tag_num=(tag_num : Int16) #