outputCustomMessage method

PlaySound? outputCustomMessage(
  1. String? message, {
  2. Map<String, String> replacements = const {},
  3. AssetReference? sound,
  4. double? gain,
  5. bool keepAlive = false,
  6. PlaySound? oldSound,
  7. SoundChannel? soundChannel,
})

Output the given message.

Implementation

PlaySound? outputCustomMessage(
  final String? message, {
  final Map<String, String> replacements = const {},
  final AssetReference? sound,
  final double? gain,
  final bool keepAlive = false,
  final PlaySound? oldSound,
  final SoundChannel? soundChannel,
}) =>
    game.outputMessage(
      getCustomMessage(
        gain: gain,
        keepAlive: keepAlive,
        message: message,
        replacements: replacements,
        sound: sound,
      ),
      oldSound: oldSound,
      soundChannel: soundChannel ?? game.interfaceSounds,
    );