From f7628210876d259335902cc947ec54bec150513a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sat, 1 Jan 2022 23:06:59 +0100 Subject: [PATCH] chore: add documentation for packets say, in player, cinfo --- .../Packets/Client/Chat/SayPacket.cs | 4 ++ .../Server/Entities/InPlayerSubPacket.cs | 37 +++++++++++++++++++ .../Packets/Server/Players/CInfoPacket.cs | 3 ++ 3 files changed, 44 insertions(+) diff --git a/Core/NosSmooth.Packets/Packets/Client/Chat/SayPacket.cs b/Core/NosSmooth.Packets/Packets/Client/Chat/SayPacket.cs index b41106695becb137507e2a6c39c69bb3461470b2..8ff35e1c39ed81f27b37b46b90e60fb2d64dd58f 100644 --- a/Core/NosSmooth.Packets/Packets/Client/Chat/SayPacket.cs +++ b/Core/NosSmooth.Packets/Packets/Client/Chat/SayPacket.cs @@ -8,6 +8,10 @@ using NosSmooth.Packets.Attributes; namespace NosSmooth.Packets.Packets.Client.Chat; +/// +/// Sends a message to the map chat. +/// +/// The message to send. [PacketHeader("say", PacketSource.Client)] [GenerateSerializer(true)] public record SayPacket diff --git a/Core/NosSmooth.Packets/Packets/Server/Entities/InPlayerSubPacket.cs b/Core/NosSmooth.Packets/Packets/Server/Entities/InPlayerSubPacket.cs index f98d7644ae3856cd17bc595064d7385a8dbfc9bd..d46d60428ec2a3a0c68aa0cdf929b29f15748fed 100644 --- a/Core/NosSmooth.Packets/Packets/Server/Entities/InPlayerSubPacket.cs +++ b/Core/NosSmooth.Packets/Packets/Server/Entities/InPlayerSubPacket.cs @@ -13,6 +13,43 @@ using NosSmooth.Packets.Packets.Server.Weapons; namespace NosSmooth.Packets.Packets.Server.Entities; +/// +/// Sub packet for +/// sent for players. +/// +/// The authority of the player. +/// The sex of the player. +/// The hair style of the player. +/// The hair color of the player. +/// The class of the player. +/// The equipment sub packet of the player containing vnums of his equipment data. +/// The percentage of hp. +/// The percentage of mp. +/// Whether the player is sitting. +/// What group does the player belong to. +/// The vnum of the fairy the player has. +/// The element of the fairy. +/// Unknown TODO. +/// The vnum of the morph (used for special cards and such). +/// Unknown TODO +/// Unknown TODO +/// Weapon upgrade and rare sub packet. +/// Armor upgrade and rare sub packet. +/// Family information sub packet. +/// The name of the family. +/// The reputation icon number. +/// Whether the player is invisible. +/// The upgrade of the morph. (wings) +/// The faction the player belongs to. +/// Unknown TODO. +/// The level of the player. +/// The level of the family the player belongs to. +/// The family icons list. +/// Whether the player is an arena winner. +/// Unknown TODO +/// The size of the player. +/// The hero level of the player. +/// The title of the player. [PacketHeader(null, PacketSource.Server)] [GenerateSerializer(true)] public record InPlayerSubPacket diff --git a/Core/NosSmooth.Packets/Packets/Server/Players/CInfoPacket.cs b/Core/NosSmooth.Packets/Packets/Server/Players/CInfoPacket.cs index b4357291ea5271f11943c610804580254e9a20ae..2d7d209a14b9962980f6489875c2d914cfa6ac7f 100644 --- a/Core/NosSmooth.Packets/Packets/Server/Players/CInfoPacket.cs +++ b/Core/NosSmooth.Packets/Packets/Server/Players/CInfoPacket.cs @@ -8,6 +8,9 @@ using NosSmooth.Packets.Attributes; namespace NosSmooth.Packets.Packets.Server.Players; +/// +/// Character information. +/// // [PacketHeader()] // [GenerateSerializer(true)] public record CInfoPacket(); \ No newline at end of file