struct

WAD::Map::Linedef

Inherits Struct < Value < Object

Structure of a linedef.

Constructors

new

Class methods

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

back_sidedef
back_sidedef=(back_sidedef : Int16)
clone

Returns a copy of self with all instance variables cloned.

end_vertex
end_vertex=(end_vertex : Int16)
flags
flags=(flags : Int16)
front_sidedef
front_sidedef=(front_sidedef : Int16)
initialize
sector_tag
sector_tag=(sector_tag : Int16)
special_type
special_type=(special_type : Int16)
start_vertex
start_vertex=(start_vertex : Int16)