From a889b8ce795fb1f81e72e533efb9c275c9331635 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Thu, 3 Feb 2022 18:55:16 +0100 Subject: [PATCH] docs(packets): add missing documentation --- .../Server/Battle/BsPacket.cs | 25 ++++++++++--------- .../Server/Battle/SuPacket.cs | 1 + .../Server/Maps/InEquipmentSubPacket.cs | 2 +- .../Server/Portals/GpPacket.cs | 9 +++++++ 4 files changed, 24 insertions(+), 13 deletions(-) diff --git a/Packets/NosSmooth.Packets/Server/Battle/BsPacket.cs b/Packets/NosSmooth.Packets/Server/Battle/BsPacket.cs index b550e34..ea6114d 100644 --- a/Packets/NosSmooth.Packets/Server/Battle/BsPacket.cs +++ b/Packets/NosSmooth.Packets/Server/Battle/BsPacket.cs @@ -14,18 +14,19 @@ namespace NosSmooth.Packets.Server.Battle; /// /// The caster entity type. /// The caster entity id. -/// The x coordinate of the skill. -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// +/// The x coordinate where to use the skill. +/// The y coordinate where to use the skill. +/// The vnum of the AoE skill used. +/// The cooldown of the skill. (seconds time 10) +/// The attack animation id. +/// The effect id. +/// Unknown TODO. +/// Unknown TODO. +/// Unknown TODO. +/// Unknown TODO. +/// Unknown TODO. +/// Unknown TODO. +/// Unknown TODO. [PacketHeader("bs", PacketSource.Server)] [GenerateSerializer(true)] public record BsPacket diff --git a/Packets/NosSmooth.Packets/Server/Battle/SuPacket.cs b/Packets/NosSmooth.Packets/Server/Battle/SuPacket.cs index 6cad3c7..37e825c 100644 --- a/Packets/NosSmooth.Packets/Server/Battle/SuPacket.cs +++ b/Packets/NosSmooth.Packets/Server/Battle/SuPacket.cs @@ -24,6 +24,7 @@ namespace NosSmooth.Packets.Server.Battle; /// The x position where the skill target is. /// The y position where the skill target is. /// Whether the target of the skill is alive. +/// The hp percentage of the entity after the attack. /// The damage the entity has taken. /// The hit mode. /// The skill type of the skill. diff --git a/Packets/NosSmooth.Packets/Server/Maps/InEquipmentSubPacket.cs b/Packets/NosSmooth.Packets/Server/Maps/InEquipmentSubPacket.cs index 73f28e9..40f6608 100644 --- a/Packets/NosSmooth.Packets/Server/Maps/InEquipmentSubPacket.cs +++ b/Packets/NosSmooth.Packets/Server/Maps/InEquipmentSubPacket.cs @@ -18,7 +18,7 @@ namespace NosSmooth.Packets.Server.Maps; /// The VNum of the main weapon. /// The VNum of the secondary weapon. /// The VNum of the mask. -/// Unknown TODO. +/// The VNum of the fairy item. /// The VNum of the costume suit. /// The VNum of the costume hat. /// The skin of the weapon. diff --git a/Packets/NosSmooth.Packets/Server/Portals/GpPacket.cs b/Packets/NosSmooth.Packets/Server/Portals/GpPacket.cs index 2dbba53..dbaf4fc 100644 --- a/Packets/NosSmooth.Packets/Server/Portals/GpPacket.cs +++ b/Packets/NosSmooth.Packets/Server/Portals/GpPacket.cs @@ -9,6 +9,15 @@ using NosSmooth.PacketSerializer.Abstractions.Attributes; namespace NosSmooth.Packets.Server.Portals; +/// +/// Packet sent when joining a map with one portal that is on the map. +/// +/// The x coordinate of the portal. +/// The y coordinate of the portal. +/// The map the portal leads to. +/// The type of the portal. +/// The id of the portal entity. +/// Whether the portal is disabled/locked. [PacketHeader("gp", PacketSource.Server)] [GenerateSerializer(true)] public record GpPacket -- 2.49.0