blob: ebef996b59d68a1ff6d93f7aba7eb9dc97715257 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
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);
// }
//}
}
|