1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-13 02:01:51 +00:00

Merge branch 'modloader' of github.com:tobspr/shapez.io into modloader

This commit is contained in:
tobspr 2022-01-18 21:19:03 +01:00
commit 1c585986d2

View File

@ -367,6 +367,14 @@ export class ModInterface {
});
}
/**
* Registers a new state class, should be a GameState derived class
* @param {typeof GameState} stateClass
*/
registerGameState(stateClass) {
this.modLoader.app.stateMgr.register(stateClass);
}
/**
* @param {object} param0
* @param {"regular"|"wires"} param0.toolbar