public void save(BlizzardDataOutputStream out) throws IOException {
   out.writeInt(time);
   out.writeFloat(heightBelow);
   if (interpolationType > 1) {
     out.writeFloat(inTan);
     out.writeFloat(outTan);
   }
 }
 public void save(BlizzardDataOutputStream out) throws IOException {
   int nrOfTracks = scalingTrack.length;
   out.writeNByteString("KRHB", 4);
   out.writeInt(nrOfTracks);
   out.writeInt(interpolationType);
   out.writeInt(globalSequenceId);
   for (int i = 0; i < scalingTrack.length; i++) {
     scalingTrack[i].save(out);
   }
 }
Example #3
0
 public void save(BlizzardDataOutputStream out) throws IOException {
   out.writeNByteString("VERS", 4);
   out.writeInt(getSize() - 8); // ChunkSize
   out.writeInt(version);
 }