struct WAD::Map::Linedef

Overview

Structure of a linedef.

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(Linedef) #

Parses a linedefs list given the io and the size

Opens a linedefs lump and parses it:

File.open("Path/To/Linedef") do |file|
  my_linedefs = WAD::Map::Linedef.parse(file, file.size)
end

def self.parse(filename : String | Path) : Array(Linedef) #

Parses a linedefs list given the filename

Opens a linedefs lump and parses it:

my_linedefs = WAD::Map::Linedef.parse("Path/To/Linedef")

Instance Method Detail

def back_sidedef : Int16 #

def back_sidedef=(back_sidedef : Int16) #

def clone #

Returns a copy of self with all instance variables cloned.


def end_vertex : Int16 #

def end_vertex=(end_vertex : Int16) #

def flags : Int16 #

def flags=(flags : Int16) #

def front_sidedef : Int16 #

def front_sidedef=(front_sidedef : Int16) #

def initialize #

def sector_tag : Int16 #

def sector_tag=(sector_tag : Int16) #

def special_type : Int16 #

def special_type=(special_type : Int16) #

def start_vertex : Int16 #

def start_vertex=(start_vertex : Int16) #