1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2026-05-02 21:32:16 +02:00
Files
Minecraft-Phantom-Panel/Common/Phantom.Common.Messages.Agent/ToAgent/ConfigureInstanceMessage.cs
2026-04-06 09:33:01 +02:00

21 lines
919 B
C#

using MemoryPack;
using Phantom.Common.Data;
using Phantom.Common.Data.Agent.Instance;
using Phantom.Common.Data.Agent.Instance.Backups;
using Phantom.Common.Data.Agent.Instance.Launch;
using Phantom.Common.Data.Agent.Instance.Stop;
using Phantom.Common.Data.Replies;
using Phantom.Utils.Actor;
namespace Phantom.Common.Messages.Agent.ToAgent;
[MemoryPackable(GenerateType.VersionTolerant)]
public sealed partial record ConfigureInstanceMessage(
[property: MemoryPackOrder(0)] Guid InstanceGuid,
[property: MemoryPackOrder(1)] InstanceInfo Info,
[property: MemoryPackOrder(2)] Optional<InstanceLaunchRecipe> LaunchRecipe,
[property: MemoryPackOrder(3)] bool LaunchNow,
[property: MemoryPackOrder(4)] InstanceStopRecipe StopRecipe,
[property: MemoryPackOrder(5)] Optional<InstanceBackupConfiguration> BackupConfiguration
) : IMessageToAgent, ICanReply<Result<ConfigureInstanceResult, InstanceActionFailure>>;