#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); } }