Skip to content

Requires2

ctreffs edited this page Oct 7, 2020 · 5 revisions

Requires2

public struct Requires2<Comp1, Comp2>: FamilyRequirementsManaging where Comp1: Component, Comp2: Component

Inheritance

FamilyDecoding, FamilyEncoding, FamilyRequirementsManaging

Initializers

init(_:)

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

Properties

componentTypes

let componentTypes: [Component.Type]

Methods

components(nexus:entityId:)

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

entityAndComponents(nexus:entityId:)

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

createMember(nexus:components:)

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