From 5f04e23932230b00304aa0a6a5fc6997abb97747 Mon Sep 17 00:00:00 2001 From: alestiago Date: Wed, 2 Mar 2022 18:39:29 +0000 Subject: [PATCH] docs: included doc comments --- lib/game/components/score_points.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/game/components/score_points.dart b/lib/game/components/score_points.dart index 543a855b..baf0db09 100644 --- a/lib/game/components/score_points.dart +++ b/lib/game/components/score_points.dart @@ -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 { @override void begin(