//
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
namespace MUnique.OpenMU.GameLogic.PlugIns;
using System.ComponentModel;
using System.Runtime.InteropServices;
using MUnique.OpenMU.PlugIns;
///
/// A plugin which is called when a chat message got received.
/// It allows to cancel the forwarding of the message to the receivers.
///
[Guid("026BF30C-6602-444E-862C-FAE19308E5EA")]
[PlugInPoint("Chat message received", "Plugins which will be executed when a chat message arrives.")]
public interface IChatMessageReceivedPlugIn
{
///
/// Is called when a chat message got received from a player.
///
/// The sending player.
/// The message.
///
/// The instance containing the event data.
/// It allows to cancel the forwarding of the message to the receivers.
///
void ChatMessageReceived(Player sender, string message, CancelEventArgs cancelEventArgs);
}