TigerEmu/Communication/Messages/Outgoing/User/Data/UserInfoComposer.cs

27 lines
979 B
C#
Raw Permalink Normal View History

2023-09-23 11:11:07 +00:00
using System.Globalization;
using Tiger.Communication.Messages.Interfaces;
using Tiger.Communication.Messages.Types;
namespace Tiger.Communication.Messages.Outgoing.User.Data;
2023-09-23 11:11:07 +00:00
public class UserInfoComposer : IMessageComposer
2023-09-23 11:11:07 +00:00
{
public OutgoingHeaders Header => OutgoingHeaders.UserInfo;
2023-09-23 11:11:07 +00:00
public void Compose(ServerMessage message)
{
2024-02-18 12:43:34 +00:00
message.AppendInt32(1);
message.AppendString("Test");
message.AppendString("FIGURE");
message.AppendString("M");
message.AppendString("Hello World");
2023-09-23 11:11:07 +00:00
message.AppendString(string.Empty);
message.AppendBoolean(false);
message.AppendInt32(0); // respect received
message.AppendInt32(0); // respect points to give
message.AppendInt32(0); // scratch to give
message.AppendBoolean(false);
2024-02-18 12:43:34 +00:00
message.AppendString(string.Empty);
2023-09-23 11:11:07 +00:00
message.AppendBoolean(false); // can change name
message.AppendBoolean(false); // safety locked
}
}