struct WAD::Map::Thing

Overview

Structure of a thing.

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(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

def self.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 Method Detail

def angle_facing : Int16 #

def angle_facing=(angle_facing : Int16) #

def clone #

Returns a copy of self with all instance variables cloned.


def flags : Int16 #

def flags=(flags : Int16) #

def initialize #

def thing_type : Int16 #

def thing_type=(thing_type : Int16) #

def x_position : Int16 #

def x_position=(x_position : Int16) #

def y_position : Int16 #

def y_position=(y_position : Int16) #