public static void addLevelsToDatabase ( final BuildDatabase buildDatabase , final Level level ) { // Add the level to the database buildDatabase . add ( level ) ; // Add the child levels to the database for ( final Level childLevel : level . getChildLevels ( ) ) { addLevelsToDatabase ( buildDatabase , childLevel ) ; } }
Adds the levels in the provided Level object to the content spec database .