// // CInfoPacket.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.Attributes; using NosSmooth.Packets.Enums; using NosSmooth.Packets.Enums.Players; namespace NosSmooth.Packets.Packets.Server.Players; /// /// Information about the playing character. /// /// /// Sent on login and when changing map. /// /// The name of the character. /// Unknown TODO /// The id of the group the player is in, if any. /// The id of the family the player is in, if any. /// The name of the family the player is in, if any. /// The id of the character. /// The authority of the character. /// The sex of the character. /// The hair style of the character. /// The hair color of the character. /// The class of the character. /// Unknown TODO /// Unknown TODO /// The vnum of the morph (used for special cards, vehicles and such). /// Whether the character is invisible. /// The level of the family, if any. /// The upgrade of the morph (wings) /// Whether the character is an arena winner. [PacketHeader("c_info", PacketSource.Server)] [GenerateSerializer(true)] public record CInfoPacket ( [PacketIndex(0)] string Name, [PacketIndex(1)] string? Unknown, [PacketIndex(2)] short? GroupId, [PacketIndex(3)] string? FamilyId, [PacketIndex(4)] string? FamilyName, [PacketIndex(5)] long CharacterId, [PacketIndex(6)] AuthorityType Authority, [PacketIndex(7)] SexType Sex, [PacketIndex(8)] HairStyle HairStyle, [PacketIndex(9)] HairColor HairColor, [PacketIndex(10)] PlayerClass Class, [PacketIndex(11)] byte Icon, [PacketIndex(12)] short Compliment, [PacketIndex(13)] short MorphVNum, [PacketIndex(14)] bool IsInvisible, [PacketIndex(15)] byte? FamilyLevel, [PacketIndex(16)] byte MorphUpgrade, [PacketIndex(17)] bool ArenaWinner ) : IPacket;