def write(self, handle: TextIO): handle.write(format_comment(self.comment)) self.level_settings.write(handle) self.tile_codes.write(handle) self.level_chances.write(handle) self.monster_chances.write(handle) self.level_templates.write(handle)
def write(self, handle: TextIO): handle.write(format_comment(self.comment)) for obj in self._inner.values(): handle.write(obj.to_line()) handle.write("\n")