public static Collection < CollisionCategory > imports ( Configurer configurer , MapTileCollision map ) { Check . notNull ( configurer ) ; Check . notNull ( map ) ; final Collection < Xml > children = configurer . getRoot ( ) . getChildren ( NODE_CATEGORY ) ; final Collection < CollisionCategory > categories = new ArrayList <> ( children . size ( ) ) ; for ( final Xml node : children ) { final CollisionCategory category = imports ( node , map ) ; categories . add ( category ) ; } return categories ; }
Create the categories data from nodes .