This commit is contained in:
Christian Treffs 2019-02-14 12:52:07 +01:00
parent 83efcfd423
commit 4e15ef217e
4 changed files with 2 additions and 11 deletions

View File

@ -16,14 +16,6 @@ public extension Entity {
return nexus.get(for: identifier)
}
@inlinable
func getComponent<A>() -> () -> A? where A: Component {
func getComponentFunc() -> A? {
return get(component: A.self)
}
return getComponentFunc
}
@inlinable
func get<A, B>(components _: A.Type, _: B.Type) -> (A?, B?) where A: Component, B: Component {
let compA: A? = get(component: A.self)

View File

@ -1,6 +1,6 @@
//
// TypedFamilyPerformanceTests.swift
// FirebladeECS
// FirebladeECSPerformanceTests
//
// Created by Christian Treffs on 29.09.18.
//

View File

@ -1,6 +1,6 @@
//
// FamilyTests.swift
// FirebladeECS
// FirebladeECSTests
//
// Created by Christian Treffs on 09.10.17.
//

View File

@ -5,7 +5,6 @@
// Created by Christian Treffs on 13.02.19.
//
@testable import FirebladeECS
import XCTest