def copy(self): return util.deepcopy(self)
def load(self, filename): """Load entries from a WAD file. All lumps from the same section in that WAD is loaded (e.g. if this is a patch section, all patches in the WAD will be loaded.""" iw = WAD(); iw.load(filename) self._lumps += util.deepcopy(iw.__dict__[self._sect_name]._lumps)