This commit is contained in:
Christian Treffs 2019-09-30 21:01:19 +02:00
parent 5117127ee3
commit 2657faff34
1 changed files with 1 additions and 6 deletions

View File

@ -11,19 +11,14 @@ public struct EntityIdentifier {
/// provides 4294967295 unique identifiers since it's constrained to UInt32 - invalid.
public let index: Int
private init() {
self = .invalid
}
public init(_ uint32: UInt32) {
self.index = Int(uint32)
}
}
extension EntityIdentifier: Equatable { }
extension EntityIdentifier: Hashable { }
extension EntityIdentifier: Codable { }
extension EntityIdentifier: Comparable {
@inlinable
public static func < (lhs: EntityIdentifier, rhs: EntityIdentifier) -> Bool {