while.js 315 B

123456789101112131415161718
  1. import { Command } from './command';
  2. export class While extends Command {
  3. constructor (expression, commandBlock) {
  4. super();
  5. this.expression = expression;
  6. this.commandBlock = commandBlock;
  7. }
  8. get commands () {
  9. return this.commandBlock.commands;
  10. }
  11. get testFirst () {
  12. return true;
  13. }
  14. }