Skip to content

Commit

Permalink
feat: Add children to SpriteAnimationComponent.fromFrameData (#2914)
Browse files Browse the repository at this point in the history
Just exposed the `children` list from `fromFrameData` constructor.
  • Loading branch information
ufrshubham committed Dec 9, 2023
1 parent d12e454 commit caf2b90
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class SpriteAnimationComponent extends PositionComponent
Vector2? scale,
double? angle,
Anchor? anchor,
Iterable<Component>? children,
int? priority,
ComponentKey? key,
}) : this(
Expand All @@ -90,6 +91,7 @@ class SpriteAnimationComponent extends PositionComponent
scale: scale,
angle: angle,
anchor: anchor,
children: children,
priority: priority,
key: key,
);
Expand Down

0 comments on commit caf2b90

Please sign in to comment.