diff --git a/packages/flame_behaviors/lib/src/behaviors/behavior.dart b/packages/flame_behaviors/lib/src/behaviors/behavior.dart index 8306d8d..1a058cb 100644 --- a/packages/flame_behaviors/lib/src/behaviors/behavior.dart +++ b/packages/flame_behaviors/lib/src/behaviors/behavior.dart @@ -15,6 +15,8 @@ abstract class Behavior extends Component /// {@macro behavior} Behavior({ super.children, + super.priority, + super.key, }); @override diff --git a/packages/flame_behaviors/lib/src/behaviors/events/draggable_behavior.dart b/packages/flame_behaviors/lib/src/behaviors/events/draggable_behavior.dart index e74d702..31869ea 100644 --- a/packages/flame_behaviors/lib/src/behaviors/events/draggable_behavior.dart +++ b/packages/flame_behaviors/lib/src/behaviors/events/draggable_behavior.dart @@ -5,4 +5,11 @@ import 'package:flame_behaviors/flame_behaviors.dart'; /// A behavior that makes an [Entity] draggable. /// {@endtemplate} abstract class DraggableBehavior - extends Behavior with DragCallbacks {} + extends Behavior with DragCallbacks { + /// {@macro draggable_behavior} + DraggableBehavior({ + super.children, + super.priority, + super.key, + }); +} diff --git a/packages/flame_behaviors/lib/src/behaviors/events/hoverable_behavior.dart b/packages/flame_behaviors/lib/src/behaviors/events/hoverable_behavior.dart index 1be3458..0bc04bc 100644 --- a/packages/flame_behaviors/lib/src/behaviors/events/hoverable_behavior.dart +++ b/packages/flame_behaviors/lib/src/behaviors/events/hoverable_behavior.dart @@ -9,4 +9,11 @@ import 'package:flame_behaviors/flame_behaviors.dart'; /// behaviors. /// {@endtemplate} abstract class HoverableBehavior - extends Behavior with HoverCallbacks {} + extends Behavior with HoverCallbacks { + /// {@macro hoverable_behavior} + HoverableBehavior({ + super.children, + super.priority, + super.key, + }); +} diff --git a/packages/flame_behaviors/lib/src/behaviors/events/tappable_behavior.dart b/packages/flame_behaviors/lib/src/behaviors/events/tappable_behavior.dart index 57ac4c8..ed334d2 100644 --- a/packages/flame_behaviors/lib/src/behaviors/events/tappable_behavior.dart +++ b/packages/flame_behaviors/lib/src/behaviors/events/tappable_behavior.dart @@ -5,4 +5,11 @@ import 'package:flame_behaviors/flame_behaviors.dart'; /// A behavior that makes an [Entity] tappable. /// {@endtemplate} abstract class TappableBehavior - extends Behavior with TapCallbacks {} + extends Behavior with TapCallbacks { + /// {@macro tappable_behavior} + TappableBehavior({ + super.children, + super.priority, + super.key, + }); +} diff --git a/packages/flame_behaviors/lib/src/behaviors/propagating_collision_behavior.dart b/packages/flame_behaviors/lib/src/behaviors/propagating_collision_behavior.dart index eeec86d..24baedf 100644 --- a/packages/flame_behaviors/lib/src/behaviors/propagating_collision_behavior.dart +++ b/packages/flame_behaviors/lib/src/behaviors/propagating_collision_behavior.dart @@ -10,6 +10,13 @@ import 'package:flutter/material.dart'; /// {@endtemplate} abstract class CollisionBehavior extends Behavior { + /// {@macro collision_behavior} + CollisionBehavior({ + super.children, + super.priority, + super.key, + }); + /// Check if the given component is an instance of [Collider]. bool isValid(Component c) => c is Collider; @@ -65,7 +72,11 @@ abstract class CollisionBehavior extends Behavior with CollisionCallbacks { /// {@macro propagating_collision_behavior} - PropagatingCollisionBehavior(this._hitbox) : super(children: [_hitbox]); + PropagatingCollisionBehavior( + this._hitbox, { + super.priority, + super.key, + }) : super(children: [_hitbox]); final ShapeHitbox _hitbox; diff --git a/packages/flame_steering_behaviors/pubspec.yaml b/packages/flame_steering_behaviors/pubspec.yaml index b08bba6..c971901 100644 --- a/packages/flame_steering_behaviors/pubspec.yaml +++ b/packages/flame_steering_behaviors/pubspec.yaml @@ -1,9 +1,13 @@ name: flame_steering_behaviors description: Flame Steering Behaviors brings steering algorithms to the behavior pattern, built by Very Good Ventures. version: 0.1.0 +homepage: https://github.com/VeryGoodOpenSource/flame_behaviors +repository: https://github.com/VeryGoodOpenSource/flame_behaviors +issue_tracker: https://github.com/VeryGoodOpenSource/flame_behaviors/issues +documentation: https://github.com/VeryGoodOpenSource/flame_behaviors/tree/main/docs environment: - sdk: ">=2.17.0 <3.0.0" + sdk: ">=3.0.0 <4.0.0" dependencies: flame: ">=1.10.0 <2.0.0"