outputCustomMessage method
PlaySound?
outputCustomMessage(})
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,
);