Entity.getFromComponent

Undocumented in source. Be warned that the author may not have intended to support it.
  1. ReturnType getFromComponent(ReturnType delegate(EntityComponentType) fn)
  2. ReturnType getFromComponent(ReturnType delegate(EntityComponentType) fn, ReturnType defaultValue)
    class Entity
    ReturnType
    getFromComponent
    (
    EntityComponentType : EntityComponent
    ReturnType
    )
    (
    ReturnType delegate
    (
    EntityComponentType
    )
    fn
    ,
    lazy ReturnType defaultValue
    )

Meta