mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-24 22:42:53 +01:00
15 lines
384 B
C#
15 lines
384 B
C#
using System.Collections.Immutable;
|
|
using MessagePack;
|
|
|
|
namespace Phantom.Common.Messages.ToServer;
|
|
|
|
[MessagePackObject]
|
|
public sealed record InstanceOutputMessage(
|
|
[property: Key(0)] Guid InstanceGuid,
|
|
[property: Key(1)] ImmutableArray<string> Lines
|
|
) : IMessageToServer {
|
|
public Task Accept(IMessageToServerListener listener) {
|
|
return listener.HandleInstanceOutput(this);
|
|
}
|
|
}
|