WAD::Map::Thing
Inherits Struct < Value < Object
Structure of a thing.
Constructors
new
Class methods
parse(io : IO, lump_size : Int) : Array(Thing)
Parses a things list given the io and the size
Opens a things lump and parses it:
File.open("Path/To/Thing") do |file|
my_things = WAD::Map::Thing.parse(file, file.size)
end
parse(filename : String | Path) : Array(Thing)
Parses a things list given the filename
Opens a things lump and parses it:
my_things = WAD::Map::Thing.parse("Path/To/Thing")
Instance methods
angle_facing
angle_facing=(angle_facing : Int16)
clone
Returns a copy of self with all instance variables cloned.
flags
flags=(flags : Int16)
initialize
thing_type
thing_type=(thing_type : Int16)
x_position
x_position=(x_position : Int16)
y_position
y_position=(y_position : Int16)