mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-15 19:21:49 +00:00
Merge branch 'modloader' of github.com:tobspr/shapez.io into modloader
This commit is contained in:
commit
1c585986d2
@ -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 {object} param0
|
||||||
* @param {"regular"|"wires"} param0.toolbar
|
* @param {"regular"|"wires"} param0.toolbar
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user