mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-22 08:42:44 +01:00
16 lines
535 B
C#
16 lines
535 B
C#
using MemoryPack;
|
|
using Phantom.Common.Data.Minecraft;
|
|
using Phantom.Common.Data.Replies;
|
|
|
|
namespace Phantom.Common.Messages.ToAgent;
|
|
|
|
[MemoryPackable]
|
|
public sealed partial record StopInstanceMessage(
|
|
[property: MemoryPackOrder(0)] Guid InstanceGuid,
|
|
[property: MemoryPackOrder(1)] MinecraftStopStrategy StopStrategy
|
|
) : IMessageToAgent<InstanceActionResult<StopInstanceResult>> {
|
|
public Task<InstanceActionResult<StopInstanceResult>> Accept(IMessageToAgentListener listener) {
|
|
return listener.HandleStopInstance(this);
|
|
}
|
|
}
|