struct WAD::Map::Linedef
- WAD::Map::Linedef
- Struct
- Value
- Object
Overview
Structure of a linedef.
Defined in:
wa-cr/wad/wad-data/map.crConstructors
Class Method Summary
-
.parse(io : IO, lump_size : Int) : Array(Linedef)
Parses a linedefs list given the io and the size
-
.parse(filename : String | Path) : Array(Linedef)
Parses a linedefs list given the filename
Instance Method Summary
- #back_sidedef : Int16
- #back_sidedef=(back_sidedef : Int16)
-
#clone
Returns a copy of
self
with all instance variables cloned. - #end_vertex : Int16
- #end_vertex=(end_vertex : Int16)
- #flags : Int16
- #flags=(flags : Int16)
- #front_sidedef : Int16
- #front_sidedef=(front_sidedef : Int16)
- #initialize
- #sector_tag : Int16
- #sector_tag=(sector_tag : Int16)
- #special_type : Int16
- #special_type=(special_type : Int16)
- #start_vertex : Int16
- #start_vertex=(start_vertex : Int16)
Constructor Detail
Class Method Detail
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
Parses a linedefs list given the filename
Opens a linedefs lump and parses it:
my_linedefs = WAD::Map::Linedef.parse("Path/To/Linedef")