1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-13 18:21:51 +00:00
tobspr_shapez.io/src/js/game/components/logic_gate.js
Даниїл Григор'єв b057382328
Mass-rename rotater -> rotator (#51)
Rename all references of rotater to rotator, including code, styles,
assets and translation files.
2025-04-04 22:55:24 +03:00

35 lines
680 B
JavaScript

import { Component } from "../component";
/** @enum {string} */
export const enumLogicGateType = {
and: "and",
not: "not",
xor: "xor",
or: "or",
transistor: "transistor",
analyzer: "analyzer",
rotator: "rotator",
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;
}
}