// // TwkPacket.cs // // Copyright (c) František Boháček. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using NosSmooth.Packets.Enums; using NosSmooth.Packets.Enums.Entities; using NosSmooth.PacketSerializer.Abstractions.Attributes; using NosSmooth.PacketSerializer.Abstractions.Common; namespace NosSmooth.Packets.Server.UI; /// /// Information about account, character, language. /// /// The type of the character entity. /// The id of the character. /// The name of the logged in account. /// The name of the character. /// A salt, seems to always be shtmxpdlfeoqkr. /// The language of the server. /// The language of the client. [PacketHeader("twk", PacketSource.Server)] [GenerateSerializer(true)] public record TwkPacket ( [PacketIndex(0)] EntityType EntityType, [PacketIndex(1)] long EntityId, [PacketIndex(2)] string AccountName, [PacketIndex(3)] NameString CharacterName, [PacketIndex(4)] string Salt, [PacketIndex(5, IsOptional = true)] string? ServerLanguage, [PacketIndex(6, IsOptional = true)] string? ClientLanguage ) : IPacket;