WAD::Map::Node
Inherits Struct < Value < Object
Structure of a node.
Constructors
Class methods
Parses a nodes list given the io and the size
Opens a nodes lump and parses it:
File.open("Path/To/Node") do |file|
my_nodes = WAD::Map::Node.parse(file, file.size)
end
Parses a nodes list given the filename
Opens a nodes lump and parses it:
my_nodes = WAD::Map::Node.parse("Path/To/Node")
Instance methods
Returns a copy of self with all instance variables cloned.
A bounding box consists of four short values (top, bottom, left and right) giving the upper and lower bounds of the y coordinate and the lower and upper bounds of the x coordinate (in that order).
A bounding box consists of four short values (top, bottom, left and right) giving the upper and lower bounds of the y coordinate and the lower and upper bounds of the x coordinate (in that order).
A bounding box consists of four short values (top, bottom, left and right) giving the upper and lower bounds of the y coordinate and the lower and upper bounds of the x coordinate (in that order).
A bounding box consists of four short values (top, bottom, left and right) giving the upper and lower bounds of the y coordinate and the lower and upper bounds of the x coordinate (in that order).
Change in x from start to end of partition line.
Change in x from start to end of partition line.
X coordinate of partition line start.
X coordinate of partition line start.
Change in y from start to end of partition line.
Change in y from start to end of partition line.
Y coordinate of partition line start.
Y coordinate of partition line start.