CompositeAndBehavior

class CompositeAndBehavior<C : Context>(first: Behavior<C>, second: Behavior<C>) : BaseBehavior<C>

Functions

and
Link copied to clipboard
common
open infix fun and(other: Behavior<C>): Behavior<C>
Performs a logical and combination of this Behavior and the other: When update is called it is run on this one first, and then on other.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
or
Link copied to clipboard
common
open infix fun or(other: Behavior<C>): Behavior<C>
Performs an or combination of this Behavior and the other: When update is called it is run on this one first, and other's update is only run if this update returns false.
toString
Link copied to clipboard
common
open fun toString(): String
update
Link copied to clipboard
common
open suspend override fun update(entity: Entity<out EntityType, C>, context: C): Boolean
Updates the given entity using the given context.

Properties

id
Link copied to clipboard
common
open override val id: UUID
The unique identifier of this System
mandatoryAttributes
Link copied to clipboard
common
open override val mandatoryAttributes: Set<KClass<out Attribute>>
The Set of Attributes that must be present in this System

Sources

(source)
Link copied to clipboard