fix: Deprecate HasGameRef in favor of HasGameReference (#3559)

This deprecates `HasGameRef` and suggests users to use
`HasGameReference` instead.
This commit is contained in:
Lukas Klingsbo
2025-04-14 20:45:17 +02:00
committed by GitHub
parent eaa2b442b7
commit a882261b63
17 changed files with 22 additions and 18 deletions

View File

@ -53,7 +53,7 @@ class CollidableAnimationExample extends FlameGame with HasCollisionDetection {
}
class AnimatedComponent extends SpriteAnimationComponent
with CollisionCallbacks, HasGameRef {
with CollisionCallbacks, HasGameReference {
final Vector2 velocity;
AnimatedComponent(