2022-06-24 13:37:03 +00:00
|
|
|
import { io } from "./io.js";
|
|
|
|
export class IllegalAction {
|
|
|
|
constructor(id, action) {
|
|
|
|
this.action = action;
|
|
|
|
this.id = id;
|
|
|
|
this.sendIllegalAction();
|
|
|
|
}
|
|
|
|
sendIllegalAction() {
|
|
|
|
io.to(this.id).emit('illegalAction', this.action);
|
|
|
|
}
|
|
|
|
}
|
2022-06-24 16:29:05 +00:00
|
|
|
//# sourceMappingURL=illegalAction.js.map
|