ExtensionMethods

class Object
trait Matchable
class Any

Extensions

Extensions

extension (entity: Entity)
def +(component: C)(implicit evidence$2: ComponentTag[C]): Entity

This method enables the following syntax:

This method enables the following syntax:

entity + Component()
def -(component: C)(implicit evidence$3: ComponentTag[C]): Entity

This method enables the following syntax:

This method enables the following syntax:

entity - Component()
def withComponent(component: C)(implicit evidence$1: ComponentTag[C]): Entity

This method enables the following syntax:

This method enables the following syntax:

entity withComponent Component()
def withComponents(componentList: L)(using clt: CListTag[L]): Entity

This method enables the following syntax:

This method enables the following syntax:

entity withComponents { Component1() &: Component2() }
extension (world: World)
def -(entity: Entity): Unit

This method enables the following syntax:

This method enables the following syntax:

world - entity
def hasA(init: World => Unit): Unit

This method enables the following syntax:

This method enables the following syntax:

world hasA system[Component &: CNil]{ () => {} }
def hasAn(entityWord: EntityWord): Entity

This method enables the following syntax:

This method enables the following syntax:

world hasAn entity