public static void exports ( Xml root , CollisionRange range ) { Check . notNull ( root ) ; Check . notNull ( range ) ; final Xml node = root . createChild ( NODE_RANGE ) ; node . writeString ( ATT_AXIS , range . getOutput ( ) . name ( ) ) ; node . writeInteger ( ATT_MIN_X , range . getMinX ( ) ) ; node . writeInteger ( ATT_MIN_Y , range . getMinY ( ) ) ; node . writeInteger ( ATT_MAX_X , range . getMaxX ( ) ) ; node . writeInteger ( ATT_MAX_Y , range . getMaxY ( ) ) ; }
Export the collision range as a node .