2022-01-13 20:20:42 +00:00
|
|
|
/* typehints:start */
|
2022-01-14 06:37:26 +00:00
|
|
|
import { Application } from "../application";
|
2022-01-13 21:14:49 +00:00
|
|
|
import { ModLoader } from "./modloader";
|
2022-01-13 20:20:42 +00:00
|
|
|
/* typehints:end */
|
|
|
|
|
|
2022-01-14 06:18:25 +00:00
|
|
|
import { MOD_SIGNALS } from "./mod_signals";
|
|
|
|
|
|
2022-01-13 20:20:42 +00:00
|
|
|
export class Mod {
|
|
|
|
|
/**
|
|
|
|
|
*
|
2022-01-14 06:37:26 +00:00
|
|
|
* @param {Application} app
|
2022-01-13 20:20:42 +00:00
|
|
|
* @param {object} metadata
|
|
|
|
|
* @param {string} metadata.name
|
|
|
|
|
* @param {string} metadata.version
|
|
|
|
|
* @param {string} metadata.authorName
|
|
|
|
|
* @param {string} metadata.authorContact
|
|
|
|
|
* @param {string} metadata.id
|
2022-01-13 21:14:49 +00:00
|
|
|
*
|
|
|
|
|
* @param {ModLoader} modLoader
|
2022-01-13 20:20:42 +00:00
|
|
|
*/
|
2022-01-14 06:37:26 +00:00
|
|
|
constructor(app, metadata, modLoader) {
|
|
|
|
|
this.app = app;
|
2022-01-13 20:20:42 +00:00
|
|
|
this.metadata = metadata;
|
2022-01-13 21:14:49 +00:00
|
|
|
this.modLoader = modLoader;
|
2022-01-14 06:18:25 +00:00
|
|
|
|
|
|
|
|
this.signals = MOD_SIGNALS;
|
|
|
|
|
this.modInterface = modLoader.modInterface;
|
2022-01-13 20:20:42 +00:00
|
|
|
}
|
|
|
|
|
|
2022-01-13 21:14:49 +00:00
|
|
|
init() {}
|
2022-01-13 20:20:42 +00:00
|
|
|
}
|