import GameStateManager from "./GameStates/GameStateManager";
// import CommandParser from "./Commands/CommandParser";
import GenerateName from "./Generators/NameGenerator";

export default {
  install: (Vue) => {
    Vue.prototype.$game = {
      startGame() {
        return GameStateManager.StartGame();
      },
      generateName() {
        return GenerateName();
      },
      parseCommand(command) {
        // return CommandParser.ParseCommand(command);
        console.log("Parsing " + command);
      }
    }
  }
}

import GameStateManager from "./GameStates/GameStateManager";
// import CommandParser from "./Commands/CommandParser";
import GenerateName from "./Generators/NameGenerator";

export default {
  install: (Vue) => {
    Vue.prototype.$game = {
      start() {
        GameStateManager.StartGame();
      },
      receiveInput(input) {
        console.log(input);
        GameStateManager.receiveInput(input);
      },
      generateName() {
        return GenerateName();
      },
      parseCommand(command) {
        // return CommandParser.ParseCommand(command);
        console.log("Parsing " + command);
      },
      getCurrentState() {
        return GameStateManager.currentState;
      }
    }
  }
}

Add new game methods for state/input management
Add new game methods for state/input management
