1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-14 18:51:51 +00:00
tobspr_shapez.io/src/js/mods/mod.js

32 lines
776 B
JavaScript
Raw Normal View History

2022-01-13 20:20:42 +00:00
/* typehints:start */
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 */
import { MOD_SIGNALS } from "./mod_signals";
2022-01-13 20:20:42 +00:00
export class Mod {
/**
*
* @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
*/
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;
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
}