refactor: included ScorePoint generics

pull/88/head
alestiago 4 years ago
parent d5d3640f0a
commit fe839ca282

@ -6,7 +6,7 @@ import 'package:pinball/game/game.dart';
/// {@template score_points} /// {@template score_points}
/// Specifies the amount of points received on [Ball] collision. /// Specifies the amount of points received on [Ball] collision.
/// {@endtemplate} /// {@endtemplate}
mixin ScorePoints on BodyComponent { mixin ScorePoints<T extends Forge2DGame> on BodyComponent<T> {
/// {@macro score_points} /// {@macro score_points}
int get points; int get points;

Loading…
Cancel
Save