@@ -1,5 +1,7 @@
|
||||
import 'package:wolf_dart/features/entities/collectible.dart';
|
||||
import 'package:wolf_dart/features/entities/decorative.dart';
|
||||
import 'package:wolf_dart/features/entities/enemies/brown_guard.dart';
|
||||
import 'package:wolf_dart/features/entities/enemies/dog.dart';
|
||||
import 'package:wolf_dart/features/entities/entity.dart';
|
||||
|
||||
typedef EntitySpawner =
|
||||
@@ -8,8 +10,10 @@ typedef EntitySpawner =
|
||||
abstract class EntityRegistry {
|
||||
// Add future enemies (SSGuard, Dog, etc.) to this list!
|
||||
static final List<EntitySpawner> _spawners = [
|
||||
Decorative.trySpawn,
|
||||
BrownGuard.trySpawn,
|
||||
Collectible.trySpawn, // Check collectibles
|
||||
Decorative.trySpawn, // Then check decorations
|
||||
BrownGuard.trySpawn, // Then check guards
|
||||
Dog.trySpawn, // Then check dogs
|
||||
];
|
||||
|
||||
static Entity? spawn(
|
||||
|
||||
Reference in New Issue
Block a user