~ruther/NosSmooth

f7628210876d259335902cc947ec54bec150513a — František Boháček 3 years ago 01bf7e2
chore: add documentation for packets say, in player, cinfo
M Core/NosSmooth.Packets/Packets/Client/Chat/SayPacket.cs => Core/NosSmooth.Packets/Packets/Client/Chat/SayPacket.cs +4 -0
@@ 8,6 8,10 @@ using NosSmooth.Packets.Attributes;

namespace NosSmooth.Packets.Packets.Client.Chat;

/// <summary>
/// Sends a message to the map chat.
/// </summary>
/// <param name="Message">The message to send.</param>
[PacketHeader("say", PacketSource.Client)]
[GenerateSerializer(true)]
public record SayPacket

M Core/NosSmooth.Packets/Packets/Server/Entities/InPlayerSubPacket.cs => Core/NosSmooth.Packets/Packets/Server/Entities/InPlayerSubPacket.cs +37 -0
@@ 13,6 13,43 @@ using NosSmooth.Packets.Packets.Server.Weapons;

namespace NosSmooth.Packets.Packets.Server.Entities;

/// <summary>
/// Sub packet for <see cref="InPacket"/>
/// sent for players.
/// </summary>
/// <param name="Authority">The authority of the player.</param>
/// <param name="Sex">The sex of the player.</param>
/// <param name="HairStyle">The hair style of the player.</param>
/// <param name="HairColor">The hair color of the player.</param>
/// <param name="Class">The class of the player.</param>
/// <param name="Equipment">The equipment sub packet of the player containing vnums of his equipment data.</param>
/// <param name="HpPercentage">The percentage of hp.</param>
/// <param name="MpPercentage">The percentage of mp.</param>
/// <param name="IsSitting">Whether the player is sitting.</param>
/// <param name="GroupId">What group does the player belong to.</param>
/// <param name="Fairy">The vnum of the fairy the player has.</param>
/// <param name="FairyElement">The element of the fairy.</param>
/// <param name="Unknown">Unknown TODO.</param>
/// <param name="MorphVNum">The vnum of the morph (used for special cards and such).</param>
/// <param name="Unknown2">Unknown TODO</param>
/// <param name="Unknown3">Unknown TODO</param>
/// <param name="WeaponUpgradeRareSubPacket">Weapon upgrade and rare sub packet.</param>
/// <param name="ArmorUpgradeRareSubPacket">Armor upgrade and rare sub packet.</param>
/// <param name="FamilySubPacket">Family information sub packet.</param>
/// <param name="FamilyName">The name of the family.</param>
/// <param name="ReputationIcon">The reputation icon number.</param>
/// <param name="IsInvisible">Whether the player is invisible.</param>
/// <param name="MorphUpgrade">The upgrade of the morph. (wings)</param>
/// <param name="Faction">The faction the player belongs to.</param>
/// <param name="MorphUpgrade2">Unknown TODO.</param>
/// <param name="Level">The level of the player.</param>
/// <param name="FamilyLevel">The level of the family the player belongs to.</param>
/// <param name="FamilyIcons">The family icons list.</param>
/// <param name="ArenaWinner">Whether the player is an arena winner.</param>
/// <param name="Compliment">Unknown TODO</param>
/// <param name="Size">The size of the player.</param>
/// <param name="HeroLevel">The hero level of the player.</param>
/// <param name="Title">The title of the player.</param>
[PacketHeader(null, PacketSource.Server)]
[GenerateSerializer(true)]
public record InPlayerSubPacket

M Core/NosSmooth.Packets/Packets/Server/Players/CInfoPacket.cs => Core/NosSmooth.Packets/Packets/Server/Players/CInfoPacket.cs +3 -0
@@ 8,6 8,9 @@ using NosSmooth.Packets.Attributes;

namespace NosSmooth.Packets.Packets.Server.Players;

/// <summary>
/// Character information.
/// </summary>
// [PacketHeader()]
// [GenerateSerializer(true)]
public record CInfoPacket();
\ No newline at end of file