Module technology.sola.ecs
Package technology.sola.ecs.view
Class View2<C1 extends Component,C2 extends Component>
- Type Parameters:
C1
- the first component typeC2
- the second component type
- All Implemented Interfaces:
View<View2Entry<C1,
C2>>
@NullMarked
public class View2<C1 extends Component,C2 extends Component>
extends ViewImpl<View2Entry<C1,C2>>
-
Field Summary
Fields inherited from class technology.sola.ecs.cache.ViewImpl
componentClasses
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable View2Entry<C1,
C2> createEntryFromEntity
(Entity entity) Methods inherited from class technology.sola.ecs.cache.ViewImpl
getEntries, isWatchingComponent
-
Constructor Details
-
View2
Creates an instance of View2.- Parameters:
c1Class
- the firstComponent
class this view watchesc2Class
- the second component class this view watches
-
-
Method Details
-
createEntryFromEntity
Description copied from class:ViewImpl
- Specified by:
createEntryFromEntity
in classViewImpl<View2Entry<C1 extends Component,
C2 extends Component>> - Parameters:
entity
- theEntity
to create aViewEntry
from- Returns:
- the
ViewEntry
-