Merge tag '0.15.2' into develop
FamilyMemberBuilder; destroyMembers
This commit is contained in:
commit
944e96828b
|
|
@ -36,7 +36,7 @@ import PackageDescription
|
|||
let package = Package(
|
||||
name: "YourPackageName",
|
||||
dependencies: [
|
||||
.package(url: "https://github.com/fireblade-engine/ecs.git", from: "0.15.1")
|
||||
.package(url: "https://github.com/fireblade-engine/ecs.git", from: "0.15.2")
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public struct Family<R> where R: FamilyRequirementsManaging {
|
|||
}
|
||||
|
||||
/// Destroy all member entities of this family.
|
||||
/// - Returns: True if entities where destroyed successfully, false otherwise.
|
||||
/// - Returns: True if entities where destroyed, false otherwise.
|
||||
@discardableResult
|
||||
public func destroyMembers() -> Bool {
|
||||
entities.reduce(!isEmpty) { $0 && nexus.destroy(entity: $1) }
|
||||
|
|
|
|||
Loading…
Reference in New Issue