readAnimationsBlock method

void readAnimationsBlock(
  1. StreamReader block
)

Implementation

void readAnimationsBlock(StreamReader block) {
  // ignore: unused_local_variable
  int animationCount = block.readUint16Length();

  _animations = <ActorAnimation>[];
  StreamReader? animationBlock;

  while ((animationBlock = block.readNextBlock(blockTypesMap)) != null) {
    switch (animationBlock!.blockType) {
      case BlockTypes.animation:
        ActorAnimation anim =
            ActorAnimation.read(animationBlock, _components);
        _animations.add(anim);
        break;
    }
  }
}