Ecosystem
public protocol Ecosystem
Ecosystem is a container for inter-dependent replicators
-
Add the given replicator (and replaces previous replicator producing the same kind of object)
Declaration
Swift
mutating func add(_: Replicator)
-
Creates an instance of the given entity kind. Intermediate instances, whose replicators have a limit propulation threshold, are also created in this process.
Declaration
Swift
mutating func createEntity<Entity>() throws -> Entity
-
Captures the current state of this ecosystem in an immutable ecosystem
Declaration
Swift
mutating func sealed() throws -> SealedEcosystem
-
count of all the generations created thus far
Declaration
Swift
var entityCount: Int { get }