module
Documentation::D_Cheatsheet::A_Reading
Overview
- Reading
-
WAD- Stores all of the information relating to a WADWAD.new(type)- Creates a newWADwithWAD.typeWAD.read(wad_file)- Reads in file in WAD formatWAD.read?(wad_file)- Reads in file in WAD format but returns Nil if parsing WAD throws errorsWAD.read!(wad_file)- Reads in file in WAD format but raises any lump parsing errorsWAD#add(name, type, filename)- Reads in filename as format type
and puts it into theWADwith nameWAD#what_is?(name) - Returns a string for what *name* is in theWAD`WAD#rename_lump(lump_name, new_name) - Renames a lump in theWAD` and returns true if succeededWAD#type- The type of aWADWAD#maps- The maps in theWADWAD#pcsounds- The pc sounds in theWADWAD#sounds- The sounds in theWADWAD#music- The music in theWADWAD#genmidi- The genmidi of theWADWAD#dmxgus- The dmxgus of theWADWAD#playpal- The playpal of theWADWAD#colormap- The colormap of theWADWAD#endoom- The EnDoom of theWADWAD#texmaps- The texture maps of theWADWAD#pnames- The Pnames of theWADWAD#graphics- The graphics in theWADWAD#sprites- The sprites in theWADWAD#flats- The flats in theWADWAD#demos- The demos in theWADWAD#directories- The directories in theWAD
-
WAD::Directory- Stores the information about a lumpWAD::Directory.read(io, file_offset)- Reads the io in directory format
-
WAD::Map- Stores all of the information relating to a mapWAD::Map.is_map?(name)- Check if name is of map name formatWAD::Map#things- All things in the mapWAD::Map#linedefs- All linedefs in the mapWAD::Map#sidedefs- All sidedefs in the mapWAD::Map#vertexes- All vertexes in the mapWAD::Map#segs- All segs in the mapWAD::Map#ssectors- All ssectors in the mapWAD::Map#nodes- All nodes in the mapWAD::Map#sectors- All sectors in the mapWAD::Map#reject- The reject table of the mapWAD::Map#blockmap- The blockmap of the mapWAD::Map::Thing- A thingWAD::Map::Linedef- A linedefWAD::Map::Sidedef- A sidedefWAD::Map::Vertex- A vertexWAD::Map::Seg- A segWAD::Map::Ssector- A sub sectorWAD::Map::Node- A nodeWAD::Map::Sector- A sectorWAD::Map::Reject- The reject tableWAD::Map::Blockmap- The blockmap
-
WAD::PcSound- Stores the information of a pc soundWAD::PcSound.parse(io)- Reads in the io in pcsound formatWAD::PcSound.is_pcsound?(name)- Checks if name is of pcsound name format
-
WAD::Sound- Stores the information of a soundWAD::Sound.parse(io)- Reads in the io in sound formatWAD::Sound.is_sound?(name)- Checks if name is of sound name formatWAD::Sound.from_wav(io)Converts a .wav to aWAD::SoundWAD::Sound#to_wav(io)- Outputs the sound to io in .wav format
-
WAD::Music- Stores the information of a musicWAD::Music.parse(io)- Reads in the io in music formatWAD::Musicis_music?(name)Checks if name is of music name format
-
WAD::Genmidi- Stores the information of the genmidiWAD::Genmidi.parse(io)- Reads in the io in genmidi formatWAD::Genmidi.is_genmidi?(name)Checks if name is of genmidi name format
-
WAD::Dmxgus- Stores the information of the dmxgusWAD::Dmxgus.parse(io)- Reads in the io in dmxgus formatWAD::Dmxgus.is_dmxgus?(name)- Checks if name is of dmxgus name format
-
WAD::Playpal- Stores the information of the playpalWAD::Playpal.parse(io)- Reads in the io in playpal formatWAD::Playpal.is_playpal?(name)- Checks if name is of playpal name formatWAD::Playpal#palettes- The color palettes in the playpal
-
WAD::Colormap- Stores the information of the colormapWAD::Colormap.parse(io)- Reads in the io in colormap formatWAD::Colormap.is_colormap?(name)- Checks if name is of colormap name format
-
WAD::EnDoom- Stores the information of the endoomWAD::EnDoom.parse(io)- Reads in the io in endoom formatWAD::EnDoom.is_endoom?(name)- Checks if name is of endoom name format
-
WAD::TextureX- Stores the information of a texture mapWAD::TextureX.parse(io)- Reads in the io in texture map formatWAD::TextureX.is_texturex?(name)- Checks if name is of texture map name format
-
WAD::Pnames- Stores the information of the pnamesWAD::Pnames.parse(io)- Reads in the io in pnames formatWAD::Pnames.is_pnames?(name)- Checks if name is of pnames name format
-
WAD::Graphic- Stores the information of a graphicWAD::Graphic.parse(io, file_offset, file_size)- Reads in the io in graphic format.
Returnsnilif io is not a valid graphic.WAD::Graphic.is_sprite_mark_start?(name)- Checks if name is a sprite start markerWAD::Graphic.is_sprite_mark_end?(name)- Checks if name is a sprite end markerWAD::Graphic#set_pixel(x, y, value)- Sets the pixel at (x, y) to be valueWAD::Graphic#[](x, y)- Returns the x, y pixel index in the palette for the graphic
-
WAD::Flat- Stores the information of a flatWAD::Flat.parse(io)- Reads in the io in flat format.WAD::Flat.is_flat_mark_start?(name)- Checks if name is a flat start markerWAD::Flat.is_flat_mark_end?(name)- Checks if name is a flat end markerWAD::Flat#set_pixel(x, y, value)- Sets the pixel at (x, y) to be valueWAD::Flat#[](x, y)- Returns the x, y pixel index in the palette for the graphic
-
WAD::Demo- Stores the information of a demoWAD::Demo.parse(io)- Reads in the io in demo formatWAD::Demo.is_demo?(io)- Checks if the io is of demo format
-