Skip to content

Requires5

ctreffs edited this page Oct 7, 2020 · 5 revisions

Requires5

public struct Requires5<Comp1, Comp2, Comp3, Comp4, Comp5>: FamilyRequirementsManaging where Comp1: Component, Comp2: Component, Comp3: Component, Comp4: Component, Comp5: Component

Inheritance

FamilyDecoding, FamilyEncoding, FamilyRequirementsManaging

Initializers

init(_:)

public init(_ components: (Comp1.Type, Comp2.Type, Comp3.Type, Comp4.Type, Comp5.Type))

Properties

componentTypes

let componentTypes: [Component.Type]

Methods

components(nexus:entityId:)

public static func components(nexus: Nexus, entityId: EntityIdentifier) -> (Comp1, Comp2, Comp3, Comp4, Comp5)

entityAndComponents(nexus:entityId:)

public static func entityAndComponents(nexus: Nexus, entityId: EntityIdentifier) -> (Entity, Comp1, Comp2, Comp3, Comp4, Comp5)

createMember(nexus:components:)

public static func createMember(nexus: Nexus, components: (Comp1, Comp2, Comp3, Comp4, Comp5)) -> Entity
Clone this wiki locally