public void writeToSave(DataTag tag){

		tag.writeString("map", worldPath);

		tag.writeInt("gametime", GameTime);
		tag.writeFloat("nightshade", new Float(nightAlhpa));

		DataList list = new DataList();
		for(MapObject mo : listWithMapObjects){
			DataTag dt = new DataTag();
			mo.writeToSave(dt);
			list.write(dt);
		}
		tag.writeList("content", list);
	}