TransmuteOperation createOperation(int entityId) { BitVector componentBits = cm.componentBits(entityId); bs.clear(); bs.or(componentBits); bs.or(additions); bs.andNot(removals); int compositionId = cm.compositionIdentity(bs); return new TransmuteOperation(compositionId, getAdditions(componentBits), getRemovals(componentBits)); }
TransmuteOperation createOperation(int entityId) { BitVector componentBits = cm.componentBits(entityId); bs.clear(); bs.or(componentBits); bs.or(additions); bs.andNot(removals); int compositionId = cm.compositionIdentity(bs); return new TransmuteOperation(compositionId, getAdditions(componentBits), getRemovals(componentBits)); }
protected void inspectComponentTypes(SaveFileFormat save) { ComponentManager cm = world.getComponentManager(); int[] ids = save.entities.getData(); for (int i = 0, s = save.entities.size(); s > i; i++) componentIds.or(cm.componentBits(ids[i])); } }
protected void inspectComponentTypes(SaveFileFormat save) { ComponentManager cm = world.getComponentManager(); int[] ids = save.entities.getData(); for (int i = 0, s = save.entities.size(); s > i; i++) componentIds.or(cm.componentBits(ids[i])); } }