mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-22 18:29:30 +00:00
47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using System;
|
|
|
|
namespace MonoGame.Extended.Entities
|
|
{
|
|
//public class ComponentType : IEquatable<ComponentType>
|
|
//{
|
|
// public ComponentType(Type type, int id)
|
|
// {
|
|
// Type = type;
|
|
// Id = id;
|
|
// }
|
|
|
|
// public Type Type { get; }
|
|
// public int Id { get; }
|
|
|
|
// public bool Equals(ComponentType other)
|
|
// {
|
|
// if (ReferenceEquals(null, other)) return false;
|
|
// if (ReferenceEquals(this, other)) return true;
|
|
// return Id == other.Id;
|
|
// }
|
|
|
|
// public override bool Equals(object obj)
|
|
// {
|
|
// if (ReferenceEquals(null, obj)) return false;
|
|
// if (ReferenceEquals(this, obj)) return true;
|
|
// if (obj.GetType() != GetType()) return false;
|
|
// return Equals((ComponentType) obj);
|
|
// }
|
|
|
|
// public override int GetHashCode()
|
|
// {
|
|
// return Id;
|
|
// }
|
|
|
|
// public static bool operator ==(ComponentType left, ComponentType right)
|
|
// {
|
|
// return Equals(left, right);
|
|
// }
|
|
|
|
// public static bool operator !=(ComponentType left, ComponentType right)
|
|
// {
|
|
// return !Equals(left, right);
|
|
// }
|
|
//}
|
|
}
|