Snowflake/RPG.Services.Core/Network/Command/ServiceCommand.cs

17 lines
455 B
C#
Raw Normal View History

2024-01-18 22:13:40 +00:00
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;
}
}