removeFromPlayer method

void removeFromPlayer(
  1. int entity
)

Removes entity from the player it is associated with.

Implementation

void removeFromPlayer(int entity) {
  final player = _playerByEntity[entity];
  if (player != null) {
    _entitiesByPlayer[player]?.remove(entity);
  }
}