has method

bool has(
  1. int entity
)

Checks if the entity has this type of component.

Implementation

bool has(int entity) => getSafe(entity) != null;