Cleanups in code
This commit is contained in:
parent
d0ec57991c
commit
af2af17433
|
|
@ -5,7 +5,6 @@
|
|||
// Created by Christian Treffs on 22.10.17.
|
||||
//
|
||||
|
||||
// MARK: - get components
|
||||
public extension Entity {
|
||||
|
||||
final func get<C>() -> C? where C: Component {
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@
|
|||
// Created by Christian Treffs on 08.10.17.
|
||||
//
|
||||
|
||||
// MARK: Unique Entity Index
|
||||
|
||||
public typealias EntityIdentifier = UInt32 // provides 4294967295 unique identifiers
|
||||
public typealias EntityIndex = Int
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
//
|
||||
// Created by Christian Treffs on 08.10.17.
|
||||
//
|
||||
|
||||
public protocol ECSEvent {}
|
||||
|
||||
public struct EntityCreated: ECSEvent {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
// Created by Christian Treffs on 08.10.17.
|
||||
//
|
||||
|
||||
// MARK: - family
|
||||
public final class Family: Equatable {
|
||||
|
||||
public weak var nexus: Nexus?
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
//
|
||||
// Created by Christian Treffs on 09.10.17.
|
||||
//
|
||||
import Swift
|
||||
|
||||
public struct FamilyTraitSet: CustomStringConvertible, CustomDebugStringConvertible {
|
||||
|
||||
public let requiresAll: ComponentSet
|
||||
|
|
|
|||
Loading…
Reference in New Issue