struct WAD::Map::Ssector

Overview

Structure of a ssector.

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(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

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

def clone #

Returns a copy of self with all instance variables cloned.


def first_seg_num : Int16 #

def first_seg_num=(first_seg_num : Int16) #

def initialize #

def seg_count : Int16 #

def seg_count=(seg_count : Int16) #