componentToClist

given componentToClist[C <: Component]: Conversion[C, C &: CNil]

This conversion enable the removal of a single component from an entity with the following syntax:

remove { Component() } from entity1

Value members

Concrete methods

def apply(component: C): C &: CNil

Inherited methods

@unspecialized
def andThen[A](g: C &: CNil => A): C => A
Inherited from
Function1
@unspecialized
def compose[A](g: A => C): A => C &: CNil
Inherited from
Function1
override def toString(): String
Definition Classes
Function1 -> Any
Inherited from
Function1

Extensions

Inherited extensions

extension (x: T)
def convert: C &: CNil

x.convert converts a value x of type T to type U

x.convert converts a value x of type T to type U

Inherited from
Conversion