This repository has been archived on 2021-02-20. You can view files and clone it, but cannot push or open issues or pull requests.
shapez.io/src/js/game/components/logic_gate.js

35 lines
714 B
JavaScript

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",
compare: "compare",
stacker: "stacker",
painter: "painter",
};
export class LogicGateComponent extends Component {
static getId() {
return "LogicGate";
}
/**
*
* @param {object} param0
* @param {enumLogicGateType=} param0.type
*/
constructor({ type = enumLogicGateType.and }) {
super();
this.type = type;
}
}