2020-08-13 19:04:44 +00:00
|
|
|
import { Component } from "../component";
|
|
|
|
|
|
|
|
export class WireTunnelComponent extends Component {
|
|
|
|
static getId() {
|
|
|
|
return "WireTunnel";
|
|
|
|
}
|
|
|
|
|
|
|
|
duplicateWithoutContents() {
|
2020-08-15 14:16:17 +00:00
|
|
|
return new WireTunnelComponent({ multipleDirections: this.multipleDirections });
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {object} param0
|
|
|
|
* @param {boolean=} param0.multipleDirections
|
|
|
|
*/
|
|
|
|
constructor({ multipleDirections = true }) {
|
|
|
|
super();
|
|
|
|
this.multipleDirections = multipleDirections;
|
2020-08-15 15:51:28 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Linked network, only if its not multiple directions
|
2020-08-15 15:55:14 +00:00
|
|
|
* @type {Array<import("../systems/wire").WireNetwork>}
|
2020-08-15 15:51:28 +00:00
|
|
|
*/
|
|
|
|
this.linkedNetworks = [];
|
2020-08-13 19:04:44 +00:00
|
|
|
}
|
|
|
|
}
|