import {Injectable} from '@angular/core'; import {BehaviorSubject} from 'rxjs'; import {MicroLessonCommunicationService} from './communication/micro-lesson-communication.service'; import {GameActionsService} from './game-actions.service'; import {ResourceFinalStateOxBridge} from 'ox-types'; @Injectable({ providedIn: 'root' }) export class ResourceStateService { public currentState: BehaviorSubject = new BehaviorSubject(undefined); constructor(/*private mlService: MicroLessonCommunicationService, private wumboxCommunication: CommunicationOxService, private gameActions: GameActionsService*/) { } /* updateState(state: any): void { this.currentState.next(state); this.mlService.sendMessageMLToManager(ResourceFinalStateOxBridge, this.currentState.value); }*/ }