OptionalMapper<T extends Component> constructor

OptionalMapper<T extends Component>(
  1. World world
)

Create a Mapper for T in world.

Implementation

OptionalMapper(World world)
    : _components = world.componentManager
          ._getComponentsByType<T>(ComponentType.getTypeFor(T));