feat: included generics

pull/37/head
alestiago 4 years ago
parent 5adcc562b2
commit 5b4f5f8794

@ -2,7 +2,7 @@ import 'package:flame_forge2d/flame_forge2d.dart';
/// Forces a given [BodyComponent] to position their [body] to an
/// [initialPosition].
mixin InitialPosition on BodyComponent {
mixin InitialPosition<T extends Forge2DGame> on BodyComponent<T> {
/// The initial position of the [body].
late final Vector2 initialPosition;

Loading…
Cancel
Save