From f70a98fc68d9ff34e8d4213ecb92c87bfd1e8fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sat, 1 Jan 2022 20:57:40 +0100 Subject: [PATCH] feat: add client SayPacket --- .../Packets/Client/Chat/SayPacket.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Core/NosSmooth.Packets/Packets/Client/Chat/SayPacket.cs diff --git a/Core/NosSmooth.Packets/Packets/Client/Chat/SayPacket.cs b/Core/NosSmooth.Packets/Packets/Client/Chat/SayPacket.cs new file mode 100644 index 0000000..b411066 --- /dev/null +++ b/Core/NosSmooth.Packets/Packets/Client/Chat/SayPacket.cs @@ -0,0 +1,17 @@ +// +// SayPacket.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; + +namespace NosSmooth.Packets.Packets.Client.Chat; + +[PacketHeader("say", PacketSource.Client)] +[GenerateSerializer(true)] +public record SayPacket +( + [PacketGreedyIndex(0)] + string Message +) : IPacket; \ No newline at end of file -- 2.49.0