Ejemplo n.º 1
0
        public static Game ProcessLobbyFile(string path)
        {
            var game = new BattleLobbyParser(path).Parse();

            FetchProfiles(game);
            return(game);
        }
Ejemplo n.º 2
0
        public static Game ProcessLobbyFile(string path)
        {
            var game = new BattleLobbyParser(path).Parse();

            FetchProfiles(game).ContinueWith(t => {
                if (t.Exception != null)
                {
                    throw t.Exception;
                }
            });
            return(game);
        }
Ejemplo n.º 3
0
        public static async Task <Game> ProcessLobbyFile(string path)
        {
            var tmpPath = Path.GetTempFileName();

            await SafeCopy(path, tmpPath, true);

            var game = new BattleLobbyParser(tmpPath).Parse();

            await FetchProfiles(game);

            return(game);
        }