Shape[] shapes = xMLObject.manageObjectArrayField( "collision-shapes", null, Shape.class );
if( shapes != null ) {
collisionSprites = new Sprite[ shapes.length ][];
for( int n = 0; n < shapes.length; n++ ) {
if( shapes[ n ] == null ) continue;
Layer layer = shapes[ n ].toLayer();
if( layer == null ) {
if( shapes[ n ] != null ) {
collisionSprites[ n ] = new Sprite[ 1 ];
collisionSprites[ n ][ 0 ] = shapes[ n ].toSprite();
}