49 lines
1.1 KiB
C#
49 lines
1.1 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
namespace YooAsset
|
|
{
|
|
[Serializable]
|
|
internal class DebugOperationInfo : IComparer<DebugOperationInfo>, IComparable<DebugOperationInfo>
|
|
{
|
|
/// <summary>
|
|
/// 任务名称
|
|
/// </summary>
|
|
public string OperationName;
|
|
|
|
/// <summary>
|
|
/// 优先级
|
|
/// </summary>
|
|
public uint Priority;
|
|
|
|
/// <summary>
|
|
/// 任务进度
|
|
/// </summary>
|
|
public float Progress;
|
|
|
|
/// <summary>
|
|
/// 任务开始的时间
|
|
/// </summary>
|
|
public string BeginTime;
|
|
|
|
/// <summary>
|
|
/// 处理耗时(单位:毫秒)
|
|
/// </summary>
|
|
public long ProcessTime;
|
|
|
|
/// <summary>
|
|
/// 任务状态
|
|
/// </summary>
|
|
public string Status;
|
|
|
|
public int CompareTo(DebugOperationInfo other)
|
|
{
|
|
return Compare(this, other);
|
|
}
|
|
public int Compare(DebugOperationInfo a, DebugOperationInfo b)
|
|
{
|
|
return string.CompareOrdinal(a.OperationName, b.OperationName);
|
|
}
|
|
}
|
|
} |