the written human world had been getting back to its feet after nearly being annihilated in the sentinel wars , and that library was tasked with the collection and protection of the worlds complete scientific , cultural , philosophical , magical and literary knowledge .