mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-17 12:11:51 +00:00
add allowNonPrimaryColors to GameCore.initNewGame
This commit is contained in:
parent
f5f790f55a
commit
cc8db54831
@ -169,11 +169,13 @@ export class GameCore {
|
|||||||
*
|
*
|
||||||
* @param {object} param1
|
* @param {object} param1
|
||||||
* @param {number} param1.seed
|
* @param {number} param1.seed
|
||||||
|
* @param {boolean} param1.allowNonPrimaryColors
|
||||||
* */
|
* */
|
||||||
initNewGame({ seed }) {
|
initNewGame({ seed, allowNonPrimaryColors }) {
|
||||||
logger.log("Initializing new game");
|
logger.log("Initializing new game");
|
||||||
this.root.gameIsFresh = true;
|
this.root.gameIsFresh = true;
|
||||||
this.root.map.seed = seed;
|
this.root.map.seed = seed;
|
||||||
|
this.root.map.allowNonPrimaryColors = allowNonPrimaryColors;
|
||||||
|
|
||||||
logger.log("Initializing newGame with seed: ", this.root.map.seed);
|
logger.log("Initializing newGame with seed: ", this.root.map.seed);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user