Files
XRLib/Assets/Scripts/UVC/Factory/Component/FactoryObjectInfo.cs
2025-06-23 20:06:15 +09:00

52 lines
1.2 KiB
C#

namespace UVC.Factory.Component
{
public class FactoryObjectInfo
{
/// <summary>
/// 이름
/// </summary>
public string Name { get; set; }
/// <summary>
/// 아이디
/// </summary>
public string Id { get; set; }
/// <summary>
/// 위치
/// </summary>
public string Position { get; set; }
/// <summary>
/// 구역
/// </summary>
public string Area { get; set; }
/// <summary>
/// 층
/// </summary>
public string Floor { get; set; }
public FactoryObjectInfo(string name, string id, string position, string area, string floor)
{
Name = name;
Id = id;
Position = position;
Area = area;
Floor = floor;
}
public bool Equals(FactoryObjectInfo other)
{
if (other == null) return false;
return Name == other.Name && Id == other.Id && Position == other.Position && Area == other.Area && Floor == other.Floor;
}
public override string ToString()
{
return $"Name:{Name},Id:{Id},Position:{Position},Area:{Area},Floor:{Floor}";
}
}
}