示例#1
0
文件: main.py 项目: chromakode/josie
def save_and_quit():
	io.output("Bye.")
	
	# Return from the system world if we are in it
	if hasattr(game, "currentworld") and game.currentworld:
		game.world = game.currentworld
	
	if game.playing and app.config["main.save_on_exit"]:
		filename = game.save()
		io.output("--- Your game has been saved. ---")
		app.config["main.last_game_save"] = filename
	app.quit()
示例#2
0
文件: main.py 项目: chromakode/josie
		def save():
			game.save()
			io.output("Your game has been saved.")