//
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
namespace MUnique.OpenMU.GameServer.RemoteView.Guild;
using System.Runtime.InteropServices;
using MUnique.OpenMU.GameLogic.Views.Guild;
using MUnique.OpenMU.Network.Packets.ServerToClient;
using MUnique.OpenMU.PlugIns;
///
/// The default implementation of the which is forwarding everything to the game client with specific data packets.
///
[PlugIn]
[Display(Name = nameof(PlugInResources.ShowShowGuildWarRequestResultPlugIn_Name), Description = nameof(PlugInResources.ShowShowGuildWarRequestResultPlugIn_Description), ResourceType = typeof(PlugInResources))]
[Guid("7DDF834C-218B-4F35-B66C-54579BE485D5")]
public class ShowShowGuildWarRequestResultPlugIn : IShowShowGuildWarRequestResultPlugIn
{
private readonly RemotePlayer _player;
///
/// Initializes a new instance of the class.
///
/// The player.
public ShowShowGuildWarRequestResultPlugIn(RemotePlayer player) => this._player = player;
///
public async ValueTask ShowResultAsync(GameLogic.Views.Guild.GuildWarRequestResult result)
{
await this._player.Connection.SendGuildWarRequestResultAsync(result.Convert()).ConfigureAwait(false);
}
}