1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00
tobspr_shapez.io/src/js/game/components/wire_tunnel.js

27 lines
693 B
JavaScript
Raw Normal View History

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;
/**
* Linked network, only if its not multiple directions
2020-08-15 15:55:14 +00:00
* @type {Array<import("../systems/wire").WireNetwork>}
*/
this.linkedNetworks = [];
}
}