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 #

[View source]

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

[View source]
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")

[View source]

Instance Method Detail

def clone #

Returns a copy of self with all instance variables cloned.


[View source]
def facing_sector_num : Int16 #

Sector number this sidedef 'faces'.


[View source]
def facing_sector_num=(facing_sector_num : Int16) #

Sector number this sidedef 'faces'.


[View source]
def initialize #

[View source]
def name_tex_low : String #

[View source]
def name_tex_low=(name_tex_low : String) #

[View source]
def name_tex_mid : String #

[View source]
def name_tex_mid=(name_tex_mid : String) #

[View source]
def name_tex_up : String #

[View source]
def name_tex_up=(name_tex_up : String) #

[View source]
def x_offset : Int16 #

[View source]
def x_offset=(x_offset : Int16) #

[View source]
def y_offset : Int16 #

[View source]
def y_offset=(y_offset : Int16) #

[View source]