MoonTools.ECS/src/Rev2/ComponentId.cs

13 lines
226 B
C#

using System;
namespace MoonTools.ECS.Rev2
{
internal readonly record struct ComponentId(int Id) : IHasId, IComparable<ComponentId>
{
public int CompareTo(ComponentId other)
{
return Id.CompareTo(other.Id);
}
}
}