Cleanups
This commit is contained in:
parent
83efcfd423
commit
4e15ef217e
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// TypedFamilyPerformanceTests.swift
|
||||
// FirebladeECS
|
||||
// FirebladeECSPerformanceTests
|
||||
//
|
||||
// Created by Christian Treffs on 29.09.18.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//
|
||||
// FamilyTests.swift
|
||||
// FirebladeECS
|
||||
// FirebladeECSTests
|
||||
//
|
||||
// Created by Christian Treffs on 09.10.17.
|
||||
//
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
// Created by Christian Treffs on 13.02.19.
|
||||
//
|
||||
|
||||
|
||||
@testable import FirebladeECS
|
||||
import XCTest
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue