final void check(int id, int cid) { boolean interested = aspectCache.unsafeGet(cid); boolean contains = activeEntityIds.unsafeGet(id); if (interested && !contains) { insert(id); } else if (!interested && contains) { remove(id); } }
final void check(int id, int cid) { boolean interested = aspectCache.unsafeGet(cid); boolean contains = activeEntityIds.unsafeGet(id); if (interested && !contains) { insert(id); } else if (!interested && contains) { remove(id); } }
private void changed(IntBag entitiesWithCompositions) { int[] ids = entitiesWithCompositions.getData(); for (int i = 0, s = entitiesWithCompositions.size(); s > i; i += 2) { int id = ids[i]; boolean interested = aspectCache.unsafeGet(ids[i + 1]); boolean contains = activeEntityIds.unsafeGet(id); if (interested && !contains) { insert(id); } else if (!interested && contains) { remove(id); } } }
private void changed(IntBag entitiesWithCompositions) { int[] ids = entitiesWithCompositions.getData(); for (int i = 0, s = entitiesWithCompositions.size(); s > i; i += 2) { int id = ids[i]; boolean interested = aspectCache.unsafeGet(ids[i + 1]); boolean contains = activeEntityIds.unsafeGet(id); if (interested && !contains) { insert(id); } else if (!interested && contains) { remove(id); } } }