/** * Fetches unique identifier for composition. * * @param componentBits composition to fetch unique identifier for. * @return Unique identifier for passed composition. */ int compositionIdentity(BitSet componentBits) { int identity = identityResolver.getIdentity(componentBits); if (identity > highestSeenIdentity) { subscriptionManager.processComponentIdentity(identity, componentBits); highestSeenIdentity = identity; } return identity; }