Syntax

trait Syntax

Trait that enables the syntax of the DSL.

class Object
trait Matchable
class Any

Type members

Classlikes

case class ClearAllFromWorld() extends From[World, Unit]

This case class enables the following syntax:

This case class enables the following syntax:

 clearAll from world
class ComponentTypeFromEntity[C <: Component](using ct: ComponentTag[C]) extends From[Entity, Unit]

This class enables the following syntax:

This class enables the following syntax:

 remove[Component] from entity1
case class ComponentsFromEntity[L <: CList](componentList: L)(using clt: CListTag[L]) extends From[Entity, Unit]

This case class enables the following syntax:

This case class enables the following syntax:

 remove { myComponent1 &: myComponent2 } from entity1
class ComponentsTypeFromEntity[L <: CList](using clt: CListTag[L]) extends From[Entity, Unit]

This class enables the following syntax:

This class enables the following syntax:

 remove[Component1 &: Component2 &: CNil ] from entity1
case class EntitiesFromWorld(entities: Seq[Entity]) extends From[World, Unit]

This case class enables the following syntax:

This case class enables the following syntax:

 * remove (entity1) from world
 * remove (Seq(myEntity1, myEntity2)) from world
class ExcludingViewFromWorld[LA <: CList, LB <: CList](using cltA: CListTag[LA])(using cltB: CListTag[LB]) extends From[World, View[LA]]

This class enables the following syntax:

This class enables the following syntax:

 getView[MyComponent1 &: MyComponent2 &: CNil].exluding[MyComponent3 &: CNil] from world
sealed trait From[A, B]

This trait enables the use of the word "from" in the dsl.

This trait enables the use of the word "from" in the dsl.

case class SystemFromWorld(system: System) extends From[World, Unit]

This case class enables the following syntax:

This case class enables the following syntax:

 remove (mySystem) from world
class ViewFromWorld[LA <: CList](using cltA: CListTag[LA]) extends From[World, View[LA]]

This class enables the following syntax:

This class enables the following syntax:

 * getView[MyComponent1 &: MyComponent2 &: CNil] from world
 * getView[MyComponent1 &: MyComponent2 &: CNil].exluding[MyComponent3 &: CNil] from world