2021-03-18 00:57:20 +00:00
|
|
|
/* typehints:start */
|
|
|
|
|
import { GameRoot } from "../root";
|
|
|
|
|
/* typehints:end */
|
2021-03-14 21:22:14 +00:00
|
|
|
|
2021-03-23 23:53:52 +00:00
|
|
|
// import { MetaBeltBuilding } from "../buildings/belt";
|
2021-03-22 14:21:20 +00:00
|
|
|
import { MetaConstantProducerBuilding } from "../buildings/constant_producer";
|
2021-03-23 23:53:52 +00:00
|
|
|
import { MetaGoalAcceptorBuilding } from "../buildings/goal_acceptor";
|
|
|
|
|
// import { MetaItemProducerBuilding } from "../buildings/item_producer";
|
2021-03-18 00:57:20 +00:00
|
|
|
import { enumGameModeIds } from "../game_mode";
|
2021-03-22 14:21:20 +00:00
|
|
|
import { PuzzleGameMode } from "./puzzle";
|
2021-03-18 00:57:20 +00:00
|
|
|
|
|
|
|
|
export class PuzzleEditGameMode extends PuzzleGameMode {
|
2021-03-14 21:22:14 +00:00
|
|
|
static getId() {
|
2021-03-18 00:57:20 +00:00
|
|
|
return enumGameModeIds.puzzleEdit;
|
2021-03-14 21:22:14 +00:00
|
|
|
}
|
|
|
|
|
|
2021-03-18 00:57:20 +00:00
|
|
|
/** @param {GameRoot} root */
|
2021-03-14 21:22:14 +00:00
|
|
|
constructor(root) {
|
|
|
|
|
super(root);
|
2021-03-22 14:21:20 +00:00
|
|
|
|
|
|
|
|
this.setBuildings({
|
|
|
|
|
[MetaConstantProducerBuilding.name]: true,
|
2021-03-23 23:53:52 +00:00
|
|
|
// [MetaBeltBuilding.name]: true,
|
|
|
|
|
[MetaGoalAcceptorBuilding.name]: true,
|
|
|
|
|
// [MetaItemProducerBuilding.name]: true,
|
2021-03-22 14:21:20 +00:00
|
|
|
});
|
2021-03-14 21:22:14 +00:00
|
|
|
}
|
|
|
|
|
}
|