Skip to content

Requires4

ctreffs edited this page Oct 7, 2020 · 5 revisions

Requires4

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

Inheritance

FamilyDecoding, FamilyEncoding, FamilyRequirementsManaging

Initializers

init(_:)

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

Properties

componentTypes

let componentTypes: [Component.Type]

Methods

components(nexus:entityId:)

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

entityAndComponents(nexus:entityId:)

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

createMember(nexus:components:)

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