コード例 #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;
        }
コード例 #2
0
ファイル: MatchHistory.cs プロジェクト: RossDay/WvW-Helper
        public static async Task <MatchHistory> CreateAsync()
        {
            var mh = await Task.Run(() => MatchHistory.Create());

            return(mh);
        }