import 'package:wolf_3d_dart/src/data_types/game_version.dart';
import 'package:wolf_3d_dart/src/registry/keys/sfx_key.dart';
import 'package:wolf_3d_dart/src/registry/modules/sfx_module.dart';

/// Built-in sound-slot resolver backed directly by [SoundEffect] metadata.
class BuiltInSfxModule extends SfxModule {
  const BuiltInSfxModule(this.version);

  final GameVersion version;

  @override
  SoundAssetRef? resolve(SoundEffect key) => SoundAssetRef(key.idFor(version));
}
