48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
using System;
|
|
using GameLogic.Game.Common.Enum;
|
|
using Sirenix.OdinInspector;
|
|
|
|
|
|
[System.Serializable]
|
|
|
|
|
|
public class AgvTaskInfo
|
|
{
|
|
|
|
[LabelText("指令")] public long instructionId;
|
|
|
|
[LabelText("指令代码")] public long instructionCode;
|
|
|
|
[LabelText("容器号")] public String containerCode;
|
|
|
|
[LabelText("是空容器")] public string containerIsEmpty;
|
|
|
|
[LabelText("任务工序")] public String taskProcedure;
|
|
|
|
[LabelText("起点设备")] public String fromDevice;
|
|
|
|
[LabelText("起点站台")] public String fromLocation;
|
|
|
|
[LabelText("去向设备")] public String toDevice;
|
|
|
|
[LabelText("去向站台")] public String toLocation;
|
|
|
|
[LabelText("小车id")] public String carId;
|
|
|
|
[LabelText("指令状态")] public string instructionStatus;
|
|
|
|
[LabelText("任务状态")] public CarTaskStatusEnum agvTaskStatus;
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
return obj is AgvTaskInfo data &&
|
|
instructionId == data.instructionId &&
|
|
instructionCode == data.instructionCode;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return HashCode.Combine(instructionId, instructionCode);
|
|
}
|
|
}
|