mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-22 08:42:44 +01:00
17 lines
634 B
C#
17 lines
634 B
C#
using MemoryPack;
|
|
using Phantom.Common.Data.Instance;
|
|
using Phantom.Common.Data.Replies;
|
|
|
|
namespace Phantom.Common.Messages.ToAgent;
|
|
|
|
[MemoryPackable]
|
|
public sealed partial record ConfigureInstanceMessage(
|
|
[property: MemoryPackOrder(0)] InstanceConfiguration Configuration,
|
|
[property: MemoryPackOrder(1)] InstanceLaunchProperties LaunchProperties,
|
|
[property: MemoryPackOrder(2)] bool LaunchNow = false
|
|
) : IMessageToAgent<InstanceActionResult<ConfigureInstanceResult>> {
|
|
public Task<InstanceActionResult<ConfigureInstanceResult>> Accept(IMessageToAgentListener listener) {
|
|
return listener.HandleConfigureInstance(this);
|
|
}
|
|
}
|