Firstborn/Library/PackageCache/com.unity.collab-proxy@1.17.7/Editor/PlasticSCM/CheckWorkspaceTreeNodeStatu...
Schaken-Mods b486678290 Library -Artifacts
Library -Artifacts
2023-03-28 12:24:16 -05:00

36 lines
854 B
C#

using Codice.Client.Commands.WkTree;
using Codice.CM.Common;
namespace Codice
{
internal static class CheckWorkspaceTreeNodeStatus
{
internal static bool IsPrivate(WorkspaceTreeNode node)
{
return node == null;
}
internal static bool IsCheckedOut(WorkspaceTreeNode node)
{
if (node == null)
return false;
return node.RevInfo.CheckedOut;
}
internal static bool IsAdded(WorkspaceTreeNode node)
{
if (node == null)
return false;
return node.RevInfo.CheckedOut &&
node.RevInfo.ParentId == -1;
}
internal static bool IsDirectory(WorkspaceTreeNode node)
{
return node.RevInfo.Type == EnumRevisionType.enDirectory;
}
}
}