prefabSerializer.setComponentIdMapping(componentIdTable);
}
private void writeIdInfo(final EntityData.GlobalStore.Builder world, TIntList nonPersistedIds) {
world.setNextEntityId(entityManager.getNextId());
entityManager.getFreedIds().forEach(new TIntProcedure() {
public boolean execute(int i) {
world.addFreedEntityId(i);
return true;
}
});
nonPersistedIds.forEach(new TIntProcedure() {
public boolean execute(int i) {
world.addFreedEntityId(i);
return true;
}
});