mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-16 11:41:50 +00:00
Added a gamestate register helper
Added a gamestate register helper
This commit is contained in:
parent
4bfd423efb
commit
8f34ea235f
@ -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.modManager.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