F
- The feature type used.public interface Featurable<F>
Features
Modifier and Type | Method and Description |
---|---|
void |
addFeature(F feature)
Add a map feature for external processing.
|
<C extends F> |
getFeature(Class<C> feature)
Get a feature instance from its type.
|
Iterable<? extends F> |
getFeatures()
Get the supported features.
|
<C extends F> |
hasFeature(Class<C> feature)
Check a feature existence from its type.
|
void addFeature(F feature)
feature
- The feature to add.<C extends F> C getFeature(Class<C> feature)
C
- The custom feature type.feature
- The feature type.LionEngineException
- If feature not found.Iterable<? extends F> getFeatures()
Copyright © 2016 Byron 3D Games Studio. All rights reserved.