TigerEmu/Communication/Messages/Incoming/Handshake/InfoRetrieveMessageEvent.cs

22 lines
728 B
C#
Raw Normal View History

2023-09-23 11:11:07 +00:00
using Tiger.Communication.Messages.Interfaces;
using Tiger.Communication.Messages.Outgoing.User.Data;
2023-09-23 11:11:07 +00:00
using Tiger.Communication.Messages.Types;
using Tiger.Networking.Game.Sessions;
namespace Tiger.Communication.Messages.Incoming.Handshake;
public class InfoRetrieveMessageEvent : IMessageEvent
2023-09-23 11:11:07 +00:00
{
private readonly IGameSessionManager _gameSessionManager;
public InfoRetrieveMessageEvent(IGameSessionManager gameSessionManager)
2023-09-23 11:11:07 +00:00
{
_gameSessionManager = gameSessionManager;
}
public IncomingHeaders Header => IncomingHeaders.UserInfo;
2023-09-23 11:11:07 +00:00
public async Task HandleAsync(GameSession gameSession, ClientMessage request)
{
2024-02-18 12:43:34 +00:00
await gameSession.SendComposerAsync(new UserInfoComposer());
2023-09-23 11:11:07 +00:00
}
}