Initial Commit
This commit is contained in:
parent
53eb92e9af
commit
270ab7d11f
15341 changed files with 700234 additions and 0 deletions
|
@ -0,0 +1,57 @@
|
|||
using System;
|
||||
|
||||
namespace Unity.Cloud.Collaborate.Models.Structures
|
||||
{
|
||||
internal struct ChangeEntry : IChangeEntry
|
||||
{
|
||||
public ChangeEntry(string path = default, string originalPath = default, ChangeEntryStatus status = default, bool staged = default, bool unmerged = default, object tag = default)
|
||||
{
|
||||
Path = path;
|
||||
OriginalPath = originalPath;
|
||||
Status = status;
|
||||
Staged = staged;
|
||||
Unmerged = unmerged;
|
||||
Tag = tag;
|
||||
}
|
||||
|
||||
public string Path { get; }
|
||||
public string OriginalPath { get; }
|
||||
public ChangeEntryStatus Status { get; }
|
||||
public bool Staged { get; }
|
||||
public bool Unmerged { get; }
|
||||
public object Tag { get; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public string StatusToString()
|
||||
{
|
||||
switch (Status)
|
||||
{
|
||||
case ChangeEntryStatus.Added:
|
||||
case ChangeEntryStatus.Untracked:
|
||||
return "added";
|
||||
case ChangeEntryStatus.Modified:
|
||||
case ChangeEntryStatus.TypeChange:
|
||||
return "edited";
|
||||
case ChangeEntryStatus.Deleted:
|
||||
return "deleted";
|
||||
case ChangeEntryStatus.Renamed:
|
||||
case ChangeEntryStatus.Copied:
|
||||
return "moved";
|
||||
case ChangeEntryStatus.Unmerged:
|
||||
return "conflicted";
|
||||
case ChangeEntryStatus.None:
|
||||
break;
|
||||
case ChangeEntryStatus.Ignored:
|
||||
break;
|
||||
case ChangeEntryStatus.Unknown:
|
||||
break;
|
||||
case ChangeEntryStatus.Broken:
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
// TODO: find a way to handle/display the unexpected/broken status types.
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/ChangeEntry.cs.meta
generated
Normal file
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/ChangeEntry.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a06ca22308e4a294baa8076df3d577a8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
|
||||
namespace Unity.Cloud.Collaborate.Models.Structures
|
||||
{
|
||||
internal struct ErrorInfo : IErrorInfo
|
||||
{
|
||||
public ErrorInfo(int code = default, int priority = default, int behaviour = default, string message = default, string shortMessage = default, string codeString = default)
|
||||
{
|
||||
Code = code;
|
||||
Priority = (ErrorInfoPriority)priority;
|
||||
Behaviour = (ErrorInfoBehavior)behaviour;
|
||||
Message = message;
|
||||
ShortMessage = shortMessage;
|
||||
CodeString = codeString;
|
||||
}
|
||||
|
||||
public int Code { get; }
|
||||
public ErrorInfoPriority Priority { get; }
|
||||
public ErrorInfoBehavior Behaviour { get; }
|
||||
public string Message { get; }
|
||||
public string ShortMessage { get; }
|
||||
public string CodeString { get; }
|
||||
}
|
||||
}
|
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/ErrorInfo.cs.meta
generated
Normal file
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/ErrorInfo.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a733b24daacf4f74193e71f8d85f6fcc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,40 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Unity.Cloud.Collaborate.Assets;
|
||||
|
||||
namespace Unity.Cloud.Collaborate.Models.Structures
|
||||
{
|
||||
internal struct HistoryEntry : IHistoryEntry
|
||||
{
|
||||
public HistoryEntry(string revisionId = default, HistoryEntryStatus status = HistoryEntryStatus.Behind, string authorName = default, string message = default, DateTimeOffset time = default, IReadOnlyList<IChangeEntry> changes = default)
|
||||
{
|
||||
Status = status;
|
||||
RevisionId = revisionId;
|
||||
AuthorName = authorName;
|
||||
Message = message;
|
||||
Time = time;
|
||||
Changes = changes;
|
||||
}
|
||||
|
||||
public HistoryEntryStatus Status { get; }
|
||||
public string RevisionId { get; }
|
||||
public string AuthorName { get; }
|
||||
public string Message { get; }
|
||||
public DateTimeOffset Time { get; }
|
||||
public IReadOnlyList<IChangeEntry> Changes { get; }
|
||||
public string GetGotoText()
|
||||
{
|
||||
switch (Status)
|
||||
{
|
||||
case HistoryEntryStatus.Ahead:
|
||||
return StringAssets.update;
|
||||
case HistoryEntryStatus.Current:
|
||||
return StringAssets.restore;
|
||||
case HistoryEntryStatus.Behind:
|
||||
return StringAssets.goBackTo;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/HistoryEntry.cs.meta
generated
Normal file
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/HistoryEntry.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 59fa6a9f6da130c4ebbd61120302fbfa
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,34 @@
|
|||
namespace Unity.Cloud.Collaborate.Models.Structures
|
||||
{
|
||||
internal enum ChangeEntryStatus
|
||||
{
|
||||
None,
|
||||
Untracked,
|
||||
Ignored,
|
||||
Modified,
|
||||
Added,
|
||||
Deleted,
|
||||
Renamed,
|
||||
Copied,
|
||||
TypeChange,
|
||||
Unmerged,
|
||||
Unknown,
|
||||
Broken
|
||||
}
|
||||
|
||||
internal interface IChangeEntry
|
||||
{
|
||||
string Path { get; }
|
||||
string OriginalPath { get; }
|
||||
ChangeEntryStatus Status { get; }
|
||||
bool Staged { get; }
|
||||
bool Unmerged { get; }
|
||||
object Tag { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns the string name of the status of this entry. Returns null if the status isn't used at present.
|
||||
/// </summary>
|
||||
/// <returns>String of used status. Null otherwise.</returns>
|
||||
string StatusToString();
|
||||
}
|
||||
}
|
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/IChangeEntry.cs.meta
generated
Normal file
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/IChangeEntry.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c1548be0adf9df34f829fbde7f53bbb8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
|
||||
namespace Unity.Cloud.Collaborate.Models.Structures
|
||||
{
|
||||
internal interface IChangeEntryData
|
||||
{
|
||||
IChangeEntry Entry { get; }
|
||||
bool Toggled { get; }
|
||||
bool All { get; }
|
||||
bool ToggleReadOnly { get; }
|
||||
bool Conflicted { get; }
|
||||
}
|
||||
}
|
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/IChangeEntryData.cs.meta
generated
Normal file
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/IChangeEntryData.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 05bce9dd4cadabf489417a9fc8f718b4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,30 @@
|
|||
namespace Unity.Cloud.Collaborate.Models.Structures
|
||||
{
|
||||
internal interface IErrorInfo
|
||||
{
|
||||
int Code { get; }
|
||||
ErrorInfoPriority Priority { get; }
|
||||
ErrorInfoBehavior Behaviour { get; }
|
||||
string Message { get; }
|
||||
string ShortMessage { get; }
|
||||
string CodeString { get; }
|
||||
}
|
||||
|
||||
internal enum ErrorInfoPriority
|
||||
{
|
||||
Critical = 0,
|
||||
Error,
|
||||
Warning,
|
||||
Info,
|
||||
None
|
||||
}
|
||||
|
||||
internal enum ErrorInfoBehavior
|
||||
{
|
||||
Alert = 0,
|
||||
Automatic,
|
||||
Hidden,
|
||||
ConsoleOnly,
|
||||
Reconnect
|
||||
}
|
||||
}
|
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/IErrorInfo.cs.meta
generated
Normal file
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/IErrorInfo.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 21285ef58054efb4c9264cf10346216e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,29 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Unity.Cloud.Collaborate.Models.Structures
|
||||
{
|
||||
internal enum HistoryEntryStatus
|
||||
{
|
||||
Ahead,
|
||||
Current,
|
||||
Behind
|
||||
}
|
||||
|
||||
internal interface IHistoryEntry
|
||||
{
|
||||
HistoryEntryStatus Status { get; }
|
||||
|
||||
string RevisionId { get; }
|
||||
|
||||
string AuthorName { get; }
|
||||
|
||||
string Message { get; }
|
||||
|
||||
DateTimeOffset Time { get; }
|
||||
|
||||
IReadOnlyList<IChangeEntry> Changes { get; }
|
||||
|
||||
string GetGotoText();
|
||||
}
|
||||
}
|
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/IHistoryEntry.cs.meta
generated
Normal file
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/IHistoryEntry.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 20c0159592ada804fbbbd1b0c38314b3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,23 @@
|
|||
namespace Unity.Cloud.Collaborate.Models.Structures
|
||||
{
|
||||
internal interface IProgressInfo
|
||||
{
|
||||
string Title { get; }
|
||||
|
||||
string Details { get; }
|
||||
|
||||
int CurrentCount { get; }
|
||||
|
||||
int TotalCount { get; }
|
||||
|
||||
string LastErrorString { get; }
|
||||
|
||||
ulong LastError { get; }
|
||||
|
||||
bool CanCancel { get; }
|
||||
|
||||
bool PercentageProgressType { get; }
|
||||
|
||||
int PercentageComplete { get; }
|
||||
}
|
||||
}
|
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/IProgressInfo.cs.meta
generated
Normal file
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/IProgressInfo.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d0f575ad752150f40ab16bb26ee52665
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -0,0 +1,38 @@
|
|||
using System;
|
||||
|
||||
namespace Unity.Cloud.Collaborate.Models.Structures
|
||||
{
|
||||
internal struct ProgressInfo : IProgressInfo
|
||||
{
|
||||
public ProgressInfo(string title = default, string details = default, int currentCount = default, int totalCount = default, string lastErrorString = default, ulong lastError = default, bool canCancel = false, bool percentageProgressType = false, int percentageComplete = default)
|
||||
{
|
||||
Title = title;
|
||||
Details = details;
|
||||
CurrentCount = currentCount;
|
||||
TotalCount = totalCount;
|
||||
LastErrorString = lastErrorString;
|
||||
LastError = lastError;
|
||||
CanCancel = canCancel;
|
||||
PercentageProgressType = percentageProgressType;
|
||||
PercentageComplete = percentageComplete;
|
||||
}
|
||||
|
||||
public string Title { get; }
|
||||
|
||||
public string Details { get; }
|
||||
|
||||
public int CurrentCount { get; }
|
||||
|
||||
public int TotalCount { get; }
|
||||
|
||||
public string LastErrorString { get; }
|
||||
|
||||
public ulong LastError { get; }
|
||||
|
||||
public bool CanCancel { get; }
|
||||
|
||||
public bool PercentageProgressType { get; }
|
||||
|
||||
public int PercentageComplete { get; }
|
||||
}
|
||||
}
|
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/ProgressInfo.cs.meta
generated
Normal file
11
Library/PackageCache/com.unity.collab-proxy@1.3.9/Editor/Models/Structures/ProgressInfo.cs.meta
generated
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f7de8279b79bd9143a9285439fdd6218
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Add table
Add a link
Reference in a new issue