Fix AnyObject to class

This commit is contained in:
Christian Treffs 2018-12-24 12:50:51 +01:00
parent 18be7f3af3
commit 4b3bf150de
4 changed files with 4 additions and 4 deletions

View File

@ -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 {

View File

@ -5,7 +5,7 @@
// Created by Christian Treffs on 28.10.17.
//
public protocol UniformStorage: AnyObject {
public protocol UniformStorage: class {
associatedtype Element
associatedtype Index

View File

@ -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)
}

View File

@ -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 }