Replicator
public struct Replicator
An object that can create an instance of a particular kind
-
population limits on the replicator
Declaration
Swift
public let populationThreshold: PopulationThreshold
-
Creates an independent replicator with the given generator function and population threshold
Declaration
Swift
init<Entity>(_ generator: @escaping () throws -> Entity, populationThreshold: PopulationThreshold = .unlimited)
-
Creates a replicator of one dependency with the given generator function and population threshold
Declaration
Swift
init<Entity, A>(combining generator: @escaping (A) throws -> Entity, populationThreshold: PopulationThreshold = .unlimited)
-
Creates a replicator of two dependencies with the given generator function and population threshold
Declaration
Swift
init<Entity, A, B>(combiningTwo generator: @escaping (A, B) throws -> Entity, populationThreshold: PopulationThreshold = .unlimited)
-
Creates a replicator of three dependencies with the given generator function and population threshold
Declaration
Swift
init<Entity, A, B, C>(combiningThree generator: @escaping (A, B, C) throws -> Entity, populationThreshold: PopulationThreshold = .unlimited)
-
Creates a replicator of four dependencies with the given generator function and population threshold
Declaration
Swift
init<Entity, A, B, C, D>(combiningFour generator: @escaping (A, B, C, D) throws -> Entity, populationThreshold: PopulationThreshold = .unlimited)
-
Creates a replicator of five dependencies with the given generator function and population threshold
Declaration
Swift
init<Entity, A, B, C, D, E>(combiningFive generator: @escaping (A, B, C, D, E) throws -> Entity, populationThreshold: PopulationThreshold = .unlimited)
-
The kind produced by this Replicator
Declaration
Swift
var kindProduced: Kind { get }