Exemplo n.º 1
0
        public async Task Initialize()
        {
            var t = MatchHistory.CreateAsync();

            CurrentWorlds["Red"]   = iniRead("RedWorld", "Red");
            CurrentWorlds["Green"] = iniRead("GreenWorld", "Green");
            CurrentWorlds["Blue"]  = iniRead("BlueWorld", "Blue");

            OurWorld   = iniRead("OurWorld", "Our");
            LeftTeam   = iniRead("LeftTeam", "Left");
            LeftWorld  = iniRead("LeftWorld", "Left");
            RightTeam  = iniRead("RightTeam", "Right");
            RightWorld = iniRead("RightWorld", "Right");

            CurrentTeams[OurTeam]   = "Our";
            CurrentTeams[LeftTeam]  = "Left";
            CurrentTeams[RightTeam] = "Right";

            MatchHistory = await t;
        }
Exemplo n.º 2
0
        public static async Task <MatchHistory> CreateAsync()
        {
            var mh = await Task.Run(() => MatchHistory.Create());

            return(mh);
        }