Files
Test-Multiplayer/Library/PackageCache/com.unity.collab-proxy@1e5e48aff19d/Editor/CheckWorkspaceTreeNodeStatus.cs
pelpanagiotis 329b7d3183 First Commit
2025-12-21 18:31:02 +02:00

36 lines
851 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;
}
}
}