docs: included doc comments

pull/7/head
alestiago 4 years ago
parent f6e15a3f26
commit 5f04e23932

@ -3,10 +3,16 @@
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:pinball/game/game.dart';
/// {@template score_points}
/// Specifies the amount of points received on [Ball] collision.
/// {@endtemplate}
mixin ScorePoints {
/// {@macro score_points}
int get points;
}
/// [ContactCallback] that adds points to the score when a [Ball] collides with
/// a [BodyComponent] that implements [ScorePoints].
class BallScorePointsCallback extends ContactCallback<Ball, ScorePoints> {
@override
void begin(

Loading…
Cancel
Save