public static void exports ( Xml root , CollisionGroup group ) { Check . notNull ( root ) ; Check . notNull ( group ) ; final Xml node = root . createChild ( NODE_COLLISION ) ; node . writeString ( ATT_GROUP , group . getName ( ) ) ; for ( final CollisionFormula formula : group . getFormulas ( ) ) { final Xml nodeFormula = node . createChild ( CollisionFormulaConfig . NODE_FORMULA ) ; nodeFormula . setText ( formula . getName ( ) ) ; } }
Export the collision group data as a node .