Files
zfxaction26_1/godot/scripts/debug/commands/DebugCommandResult.cs
2026-04-21 21:16:30 +02:00

16 lines
588 B
C#

#nullable enable
namespace SideScrollerGame.Debug.Commands;
public sealed record DebugCommandResult(DebugCommandId CommandId, bool Succeeded, string Message, string? Argument = null)
{
public static DebugCommandResult Success(DebugCommandId commandId, string message, string? argument = null)
{
return new DebugCommandResult(commandId, true, message, argument);
}
public static DebugCommandResult Failure(DebugCommandId commandId, string message, string? argument = null)
{
return new DebugCommandResult(commandId, false, message, argument);
}
}