import RoundService from 'core/service/round' ; import { ON } from 'core/util/decorator' ; import { BaseController } from 'core/controller/baseController' ; class RoundController extends BaseController { @ ON ( 'ROUND_FINISH' ) generateRound ( ) { RoundService . forwardProcess ( ) ; } @ ON ( 'WARM_UP_FINISHED' ) restoreRound ( ) { RoundService . restore ( ) ; } } export default new RoundController ( ) ;