1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Improve information when hovering wires

This commit is contained in:
tobspr
2020-08-15 17:51:28 +02:00
parent 61e7481c8f
commit 7279b75187
20 changed files with 487 additions and 255 deletions

View File

@@ -1,4 +1,5 @@
import { Component } from "../component";
import { WireNetwork } from "../systems/wire";
export class WireTunnelComponent extends Component {
static getId() {
@@ -16,5 +17,11 @@ export class WireTunnelComponent extends Component {
constructor({ multipleDirections = true }) {
super();
this.multipleDirections = multipleDirections;
/**
* Linked network, only if its not multiple directions
* @type {Array<WireNetwork>}
*/
this.linkedNetworks = [];
}
}