Skip to content

Requires1

ctreffs edited this page Oct 7, 2020 · 5 revisions

Requires1

public struct Requires1<Comp1>: FamilyRequirementsManaging where Comp1: Component

Inheritance

FamilyDecoding, FamilyEncoding, FamilyRequirementsManaging

Initializers

init(_:)

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

Properties

componentTypes

let componentTypes: [Component.Type]

Methods

components(nexus:entityId:)

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

entityAndComponents(nexus:entityId:)

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

createMember(nexus:components:)

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