isUpdateNeededForSystem method

bool isUpdateNeededForSystem(
  1. EntitySystem system
)

Returns true if the list of entities of system need to be updated.

Implementation

bool isUpdateNeededForSystem(EntitySystem system) {
  final systemBitIndex = system._systemBitIndex;
  for (final interestingComponent in system._interestingComponentsIndices) {
    if (_componentInfoByType[interestingComponent]!
        .systemRequiresUpdate(systemBitIndex)) {
      return true;
    }
  }
  return false;
}