/** * Get entities in group.. * @return {@code EBag} of entities in group. Returns empty bag if group contains no entities. */ public static EBag withGroup(String groupName) { if(_processingMapper==null) throw new RuntimeException("SuperMapper system must be registered before any systems using E().");; return new EBag((com.artemis.utils.IntBag)_processingMapper.getWorld().getSystem(com.artemis.managers.GroupManager.class).getEntityIds(groupName)); }
/** * Get entities in group.. * @return {@code EBag} of entities in group. Returns empty bag if group contains no entities. */ public static EBag withGroup(String groupName) { if(_processingMapper==null) throw new RuntimeException("SuperMapper system must be registered before any systems using E().");; return new EBag((com.artemis.utils.IntBag)_processingMapper.getWorld().getSystem(com.artemis.managers.GroupManager.class).getEntityIds(groupName)); }