server-master/srcs/WingsAPI.Game.Extensions/PacketGeneration/InfoPacketsExtensions.cs
2026-02-10 18:21:30 +01:00

17 lines
No EOL
566 B
C#

// WingsEmu
//
// Developed by NosWings Team
using WingsEmu.Game.Networking;
using WingsEmu.Packets.Enums.Chat;
namespace WingsAPI.Game.Extensions.PacketGeneration
{
public static class InfoPacketsExtensions
{
public static string GenerateSayPacket(this IClientSession session, string msg, ChatMessageColorType color) =>
$"say {(byte)session.PlayerEntity.Type} {session.PlayerEntity.Id} {(byte)color} {msg}";
public static string GenerateInfoPacket(this IClientSession session, string message) => $"info {message}";
}
}