Skip to content

Requires7

ctreffs edited this page Oct 7, 2020 · 3 revisions

Requires7

public struct Requires7<Comp1, Comp2, Comp3, Comp4, Comp5, Comp6, Comp7>: FamilyRequirementsManaging where Comp1: Component, Comp2: Component, Comp3: Component, Comp4: Component, Comp5: Component, Comp6: Component, Comp7: Component

Inheritance

FamilyDecoding, FamilyEncoding, FamilyRequirementsManaging

Initializers

init(_:)

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

Properties

componentTypes

let componentTypes: [Component.Type]

Methods

components(nexus:entityId:)

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

entityAndComponents(nexus:entityId:)

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

createMember(nexus:components:)

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