/// <summary> /// Adds the map lumps to a Doom wad file. /// </summary> /// <param name="wad">The wad file to which the map should be added</param> public void AddToWad(WadFile wad) { wad.AddLump(Name, new byte[0]); wad.AddLump("LINEDEFS", Linedefs.SelectMany(x => x.ToBytes()).ToArray()); wad.AddLump("SECTORS", Sectors.SelectMany(x => x.ToBytes()).ToArray()); wad.AddLump("SIDEDEFS", Sidedefs.SelectMany(x => x.ToBytes()).ToArray()); wad.AddLump("THINGS", Things.SelectMany(x => x.ToBytes()).ToArray()); wad.AddLump("VERTEXES", Vertices.SelectMany(x => x.ToBytes()).ToArray()); }
public Sidedef(KaitaiStream io, Sidedefs parent = null, DoomWad root = null) : base(io) { m_parent = parent; m_root = root; _parse(); }