DotRecastNetSim/src/DotRecast.Detour/StatusEx.cs

25 lines
650 B
C#
Raw Normal View History

2023-06-06 18:24:41 +03:00
namespace DotRecast.Detour
{
public static class StatusEx
{
public static bool IsFailed(this Status @this)
{
return @this == Status.FAILURE || @this == Status.FAILURE_INVALID_PARAM;
}
public static bool IsInProgress(this Status @this)
{
return @this == Status.IN_PROGRESS;
}
public static bool IsSuccess(this Status @this)
{
return @this == Status.SUCCSESS || @this == Status.PARTIAL_RESULT;
}
public static bool IsPartial(this Status @this)
{
return @this == Status.PARTIAL_RESULT;
}
}
}