Saving and loading game entities.