if (collisions.containsKey(area)) {
// Repeated layers should be ignored.
return;
}
final CollisionDetection collisionTemp = new CollisionDetection();
collisionTemp.setCollisionData(LayerDefinition.decode(in));
collisions.put(area, collisionTemp);
} else if (layer.equals("protection")) {
/*
* Add protection
*/
if (protections.containsKey(area)) {
// Repeated layers should be ignored.
return;
}
final CollisionDetection protectionTemp = new CollisionDetection();
protectionTemp.setCollisionData(LayerDefinition.decode(in));
protections.put(area, protectionTemp);
} else if (layer.equals("tilesets")) {
/*
* Add tileset