class Storage {
	static set(key, value) {
		localStorage.setItem(key, value);
	}

	static get(key) {
		return localStorage.getItem(key);
	}

	static getInteger(key) {
		var string = Storage.get(key);
		if (!string) {
			return 0;
		}

		return parseInt(string);
	}

	static getFloat(key) {
		var string = Storage.get(key);
		if (!string) {
			return 0;
		}

		return parseFloat(string);
	}
}