local storage = minetest.get_mod_storage()

function sm_game.api.get_highscore()
	return storage:get_int("high_score")
end

function sm_game.api.set_highscore(val)
	storage:set_int("high_score", val)
end

function sm_game.api.get_playtime()
	return storage:get_int("playtime")
end

function sm_game.api.set_playtime(val)
	storage:set_int("playtime", val)
end

function sm_game.api.get_playcount()
	return storage:get_int("playcount")
end

function sm_game.api.set_playcount(val)
	storage:set_int("playcount", val)
end