/** * Informs all listeners of added, changedBits and deletedBits changes. * * Order of {@link EntitySubscription.SubscriptionListener} can vary * (typically ordinal, except for subscriptions created in process, * initialize instead of setWorld). * * {@link com.artemis.EntitySubscription.SubscriptionListener#inserted(IntBag)} * {@link com.artemis.EntitySubscription.SubscriptionListener#removed(IntBag)} * * @param changedBits Entities with changedBits composition or state. * @param deletedBits Entities removed from world. */ void process(BitVector changedBits, BitVector deletedBits) { toEntityIntBags(changedBits, deletedBits); // note: processAll != process subscriptions.get(0).processAll(changed, deleted); for (int i = 1, s = subscriptions.size(); s > i; i++) { subscriptions.get(i).process(changed, deleted); } }
/** * Informs all listeners of added, changedBits and deletedBits changes. * * Order of {@link EntitySubscription.SubscriptionListener} can vary * (typically ordinal, except for subscriptions created in process, * initialize instead of setWorld). * * {@link com.artemis.EntitySubscription.SubscriptionListener#inserted(IntBag)} * {@link com.artemis.EntitySubscription.SubscriptionListener#removed(IntBag)} * * @param changedBits Entities with changedBits composition or state. * @param deletedBits Entities removed from world. */ void process(BitVector changedBits, BitVector deletedBits) { toEntityIntBags(changedBits, deletedBits); // note: processAll != process subscriptions.get(0).processAll(changed, deleted); for (int i = 1, s = subscriptions.size(); s > i; i++) { subscriptions.get(i).process(changed, deleted); } }