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