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

Add virtual shape processing buildings

This commit is contained in:
tobspr
2020-08-18 20:02:39 +02:00
parent 1ff76e0b2e
commit 296b76bf11
28 changed files with 6929 additions and 6368 deletions

View File

@@ -1,30 +1,36 @@
import { Component } from "../component";
/** @enum {string} */
export const enumLogicGateType = {
and: "and",
not: "not",
xor: "xor",
or: "or",
transistor: "transistor",
};
export class LogicGateComponent extends Component {
static getId() {
return "LogicGate";
}
duplicateWithoutContents() {
return new LogicGateComponent({ type: this.type });
}
/**
*
* @param {object} param0
* @param {enumLogicGateType=} param0.type
*/
constructor({ type = enumLogicGateType.and }) {
super();
this.type = type;
}
}
import { Component } from "../component";
/** @enum {string} */
export const enumLogicGateType = {
and: "and",
not: "not",
xor: "xor",
or: "or",
transistor: "transistor",
analyzer: "analyzer",
rotater: "rotater",
unstacker: "unstacker",
cutter: "cutter",
shapecompare: "shapecompare",
};
export class LogicGateComponent extends Component {
static getId() {
return "LogicGate";
}
duplicateWithoutContents() {
return new LogicGateComponent({ type: this.type });
}
/**
*
* @param {object} param0
* @param {enumLogicGateType=} param0.type
*/
constructor({ type = enumLogicGateType.and }) {
super();
this.type = type;
}
}