mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-22 08:42:44 +01:00
19 lines
523 B
C#
19 lines
523 B
C#
using MemoryPack;
|
|
using Phantom.Utils.Rpc.Message;
|
|
|
|
namespace Phantom.Common.Messages.BiDirectional;
|
|
|
|
[MemoryPackable]
|
|
public sealed partial record ReplyMessage(
|
|
[property: MemoryPackOrder(0)] uint SequenceId,
|
|
[property: MemoryPackOrder(1)] byte[] SerializedReply
|
|
) : IMessageToServer, IMessageToAgent {
|
|
public Task<NoReply> Accept(IMessageToServerListener listener) {
|
|
return listener.HandleReply(this);
|
|
}
|
|
|
|
public Task<NoReply> Accept(IMessageToAgentListener listener) {
|
|
return listener.HandleReply(this);
|
|
}
|
|
}
|