Add debug foundation
This commit is contained in:
16
godot/scripts/debug/commands/DebugCommandResult.cs
Normal file
16
godot/scripts/debug/commands/DebugCommandResult.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
#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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user