name = loadedData.getString("name");
} else if (step == LoadingStep.REFERENCE) {
// set up Map with nations controlled by this player, set reference
// Nation --> Player controlling the nation.
Game game = Game.getGame();
nations = new HashMap<Long, Nation>();
Set<Long> nationIDs = loadedData.getLongHashSet("nations");
for (Long currID : nationIDs) {
Nation currNation = game.getNation(currID);
nations.put(currID, currNation);
currNation.setPlayer(this);
}
}
}