2023-10-06 18:46:50 +00:00
|
|
|
using Tiger.Communication.Messages.Interfaces;
|
|
|
|
using Tiger.Communication.Messages.Types;
|
|
|
|
|
|
|
|
namespace Tiger.Communication.Messages.Outgoing.Avatar;
|
|
|
|
|
|
|
|
public class FigureUpdateComposer : IMessageComposer
|
|
|
|
{
|
|
|
|
private readonly string _figure;
|
|
|
|
private readonly string _gender;
|
|
|
|
|
|
|
|
public FigureUpdateComposer(string figure, string gender)
|
|
|
|
{
|
|
|
|
_figure = figure;
|
|
|
|
_gender = gender;
|
|
|
|
}
|
|
|
|
|
2023-10-14 16:21:53 +00:00
|
|
|
public OutgoingHeaders Header => OutgoingHeaders.UserFigure;
|
2023-10-06 18:46:50 +00:00
|
|
|
public void Compose(ServerMessage message)
|
|
|
|
{
|
|
|
|
message.AppendString(_figure);
|
|
|
|
message.AppendString(_gender);
|
|
|
|
}
|
|
|
|
}
|