2020-10-08 21:09:05 +00:00
|
|
|
"use strict";
|
2020-10-02 12:01:51 +00:00
|
|
|
|
2020-09-29 15:11:43 +00:00
|
|
|
class GameDownload {
|
2020-10-08 21:09:05 +00:00
|
|
|
constructor() {
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* Platform that hosts game files
|
|
|
|
* @type String
|
|
|
|
*/
|
|
|
|
this.hosting = "";
|
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* Link to game files
|
|
|
|
* @type String
|
|
|
|
*/
|
|
|
|
this.link = null;
|
2020-09-29 15:11:43 +00:00
|
|
|
/**
|
|
|
|
* @public
|
2020-10-08 21:09:05 +00:00
|
|
|
* Operating systems supported by the game version indicated in this class.
|
|
|
|
* Can be *WINDOWS/LINUX/MACOS*
|
|
|
|
* @type String[]
|
2020-09-29 15:11:43 +00:00
|
|
|
*/
|
2020-10-08 21:09:05 +00:00
|
|
|
this.supportedOS = [];
|
|
|
|
}
|
2020-09-29 15:11:43 +00:00
|
|
|
|
2020-10-08 21:09:05 +00:00
|
|
|
/**
|
|
|
|
* @public
|
|
|
|
* Download the game data in the indicated path
|
|
|
|
* @param {string} path Save path
|
|
|
|
*/
|
|
|
|
download(path) {}
|
2020-09-29 15:11:43 +00:00
|
|
|
}
|
2020-10-02 12:01:51 +00:00
|
|
|
module.exports = GameDownload;
|
2020-09-29 15:11:43 +00:00
|
|
|
|
2020-10-08 21:09:05 +00:00
|
|
|
function downloadMEGA(url) {}
|
2020-09-29 15:11:43 +00:00
|
|
|
|
2020-10-08 21:09:05 +00:00
|
|
|
function downloadNOPY(url) {}
|