import { GameEngine } from "@runox-game/game-engine" ; import type { GameModes } from "@runox-game/game-engine/lib/models/game-modes" ; import type { IPlayer , Player } from "@runox-game/game-engine/lib/models/player.model" ; import type { ICard } from "@runox-game/game-engine/lib/models/card.model" ; import type { ILog } from "@runox-game/game-engine/lib/log/log.factory" ; export class GameEngineService { game = new GameEngine ( ) ; public playerId : string ; constructor ( ) { } joinUser ( user ) { this . game . join ( [ user ] ) . subscribe ( ) ; } removeUser ( user ) { this . game . remove ( user ) . subscribe ( ) ; } playCard ( card ) { this . game . playCard ( this . game . playerTurn ?. id , card ) . subscribe ( ) ; } takeCard ( ) { this . game . takeCard ( ) ; } poneleeeeUno ( userId ) { this . game . uno ( userId ) ; } overrideInternalState ( data ) { this . game . overrideInternalState ( data ) ; } onStateChanged ( ) { } }