struct WAD::Map::Sidedef
- WAD::Map::Sidedef
- Struct
- Value
- Object
Overview
Structure of a sidedef.
Defined in:
wa-cr/wad/wad-data/map.crConstructors
Class Method Summary
-
.parse(io : IO, lump_size : Int) : Array(Sidedef)
Parses a sidedefs list given the io and the size
-
.parse(filename : String | Path) : Array(Sidedef)
Parses a sidedefs list given the filename
Instance Method Summary
-
#clone
Returns a copy of
self
with all instance variables cloned. -
#facing_sector_num : Int16
Sector number this sidedef 'faces'.
-
#facing_sector_num=(facing_sector_num : Int16)
Sector number this sidedef 'faces'.
- #initialize
- #name_tex_low : String
- #name_tex_low=(name_tex_low : String)
- #name_tex_mid : String
- #name_tex_mid=(name_tex_mid : String)
- #name_tex_up : String
- #name_tex_up=(name_tex_up : String)
- #x_offset : Int16
- #x_offset=(x_offset : Int16)
- #y_offset : Int16
- #y_offset=(y_offset : Int16)
Constructor Detail
Class Method Detail
Parses a sidedefs list given the io and the size
Opens a sidedefs lump and parses it:
File.open("Path/To/Sidedef") do |file|
my_sidedefs = WAD::Map::Sidedef.parse(file, file.size)
end
Parses a sidedefs list given the filename
Opens a sidedefs lump and parses it:
my_sidedefs = WAD::Map::Sidedef.parse("Path/To/Sidedef")