read method

void read(
  1. StreamReader reader,
  2. bool isConnectedToBones
)

Implementation

void read(StreamReader reader, bool isConnectedToBones) {
  Vec2D.copyFromList(_translation, reader.readFloat32Array(2, 'translation'));

  int weightLength = readPoint(reader, isConnectedToBones);
  if (weightLength != 0) {
    _weights = reader.readFloat32Array(weightLength, 'weights');
  }
}