Fix AnyObject to class
This commit is contained in:
parent
18be7f3af3
commit
4b3bf150de
|
|
@ -5,7 +5,7 @@
|
|||
// Created by Christian Treffs on 08.10.17.
|
||||
//
|
||||
|
||||
public protocol Component: AnyObject, TypeIdentifiable {}
|
||||
public protocol Component: class, TypeIdentifiable {}
|
||||
public typealias ComponentIdentifier = ObjectIdentifier
|
||||
|
||||
public extension Component {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
// Created by Christian Treffs on 28.10.17.
|
||||
//
|
||||
|
||||
public protocol UniformStorage: AnyObject {
|
||||
public protocol UniformStorage: class {
|
||||
associatedtype Element
|
||||
associatedtype Index
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public typealias EntityIdInFamilyIndex = Int
|
|||
public typealias TraitEntityIdHashSet = [TraitEntityIdHash: EntityIdInFamilyIndex]
|
||||
public typealias SparseComponentIdentifierSet = UnorderedSparseSet<ComponentIdentifier>
|
||||
|
||||
public protocol NexusDelegate: AnyObject {
|
||||
public protocol NexusDelegate: class {
|
||||
func nexusEventOccurred(_ event: ECSEvent)
|
||||
func nexusRecoverableErrorOccurred(_ message: String)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
// * define read/write access
|
||||
// * set size and storage constraints
|
||||
|
||||
public protocol TypedFamilyProtocol: AnyObject, Equatable, Sequence {
|
||||
public protocol TypedFamilyProtocol: class, Equatable, Sequence {
|
||||
associatedtype EntityComponentsSequence: EntityComponentsSequenceProtocol
|
||||
|
||||
var traits: FamilyTraitSet { get }
|
||||
|
|
|
|||
Loading…
Reference in New Issue