Cleanups
This commit is contained in:
parent
5117127ee3
commit
2657faff34
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue