public static MachineDescription GetMachineDescription(string machineFolder) { var client = new MpfClient(); var spawner = new MpfSpawner(machineFolder); spawner.Spawn(new MpfConsoleOptions { ShowLogInsteadOfConsole = true }); client.Connect("localhost:50051"); client.StartGame(new Dictionary <string, bool>(), false); var description = client.GetMachineDescription(); client.Shutdown(); return(description); }
public MpfApi(string machineFolder) { _spawner = new MpfSpawner(Path.GetFullPath(machineFolder)); }