Animation animation) {
d.printSection(animation.getName());
d.printKeyValue("DefaultKeyDuration",""+animation.getDefaultKeyDuration());
Frame[] frames = animation.getFrames();
for(int fi=0; fi<frames.length; fi++) {
Frame f = frames[fi];
d.printKeyValue("KeyData"+(fi+1),f.getName());
if(f.getKeyDuration()>0)
d.printKeyValue("KeyDuration"+(fi+1),""+f.getKeyDuration());
}
for(int fi=0; fi<frames.length; fi++) {
Frame f = frames[fi];
Point offset = f.getOffset();
if(offset.x!=0 || offset.y!=0) {
d.printKeyValue("KeyEventName"+(fi+1),"__"+fi);
d.printKeyValue("__"+fi, "("+offset.x+","+offset.y+",0)");
}
}