/// Defines the exact start and end sprite indices for an animation state.
class SpriteFrameRange {
  final int start;
  final int end;

  const SpriteFrameRange(this.start, this.end);

  int get length => end - start + 1;
  bool contains(int index) => index >= start && index <= end;
}
