struct WAD::Map::Sidedef

Overview

Structure of a sidedef.

Defined in:

wa-cr/wad/wad-data/map.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

Class Method Detail

def self.parse(io : IO, lump_size : Int) : Array(Sidedef) #

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

def self.parse(filename : String | Path) : Array(Sidedef) #

Parses a sidedefs list given the filename

Opens a sidedefs lump and parses it:

my_sidedefs = WAD::Map::Sidedef.parse("Path/To/Sidedef")

Instance Method Detail

def clone #

Returns a copy of self with all instance variables cloned.


def facing_sector_num : Int16 #

Sector number this sidedef 'faces'.


def facing_sector_num=(facing_sector_num : Int16) #

Sector number this sidedef 'faces'.


def initialize #

def name_tex_low : String #

def name_tex_low=(name_tex_low : String) #

def name_tex_mid : String #

def name_tex_mid=(name_tex_mid : String) #

def name_tex_up : String #

def name_tex_up=(name_tex_up : String) #

def x_offset : Int16 #

def x_offset=(x_offset : Int16) #

def y_offset : Int16 #

def y_offset=(y_offset : Int16) #