KafkaSR/RPG.Services.Core/Network/Command/ServiceCommand.cs
2024-01-30 02:49:21 +03:00

16 lines
455 B
C#

using RPG.Network.Proto;
namespace RPG.Services.Core.Network.Command;
public class ServiceCommand
{
public RPGServiceType SenderType { get; }
public ServiceCommandType CommandType { get; }
public ReadOnlyMemory<byte> Body { get; }
public ServiceCommand(RPGServiceType sender, ServiceCommandType commandType, ReadOnlyMemory<byte> body)
{
SenderType = sender;
CommandType = commandType;
Body = body;
}
}