add == operator to Entity

filter_relations
cosmonaut 2022-08-11 14:04:26 -07:00
parent 453426a232
commit bb359d339b
1 changed files with 10 additions and 0 deletions

View File

@ -25,5 +25,15 @@ namespace MoonTools.ECS
{
return ID == other.ID;
}
public static bool operator ==(Entity a, Entity b)
{
return a.Equals(b);
}
public static bool operator !=(Entity a, Entity b)
{
return !a.Equals(b);
}
}
}