コード例 #1
0
        public void GenerateScoreboards()
        {
            foreach (PlayerMobile mobile in ParticipantsScores.Keys)
            {
                PlayerMobile mobile1 = mobile;
                Timer.DelayCall(
                    TimeSpan.FromMinutes(1),
                    () =>
                {
                    var scrollgump = new InvasionScoresScrollGump(mobile1, onAccept: x =>
                    {
                        var scoreboard = new InvasionScoresOverviewGump(mobile1, this).
                                         Send <InvasionScoresOverviewGump>();
                    }).Send <InvasionScoresScrollGump>();
                });

                // PlayerEventScoreProfile eventprofile = EventScores.EventScores.EnsureProfile(mobile);
                //eventprofile.AddInvasion(this, mobile);
            }
        }
コード例 #2
0
ファイル: Invasion.cs プロジェクト: greeduomacro/UO-Forever
        public void GenerateScoreboards()
        {
            foreach (PlayerMobile mobile in ParticipantsScores.Keys)
            {
                PlayerMobile mobile1 = mobile;
                Timer.DelayCall(
                    TimeSpan.FromMinutes(1),
                    () =>
                    {
                        var scrollgump = new InvasionScoresScrollGump(mobile1, onAccept: x =>
                        {
                            var scoreboard = new InvasionScoresOverviewGump(mobile1, this).
                                Send<InvasionScoresOverviewGump>();
                        }).Send<InvasionScoresScrollGump>();
                    });

               // PlayerEventScoreProfile eventprofile = EventScores.EventScores.EnsureProfile(mobile);
                //eventprofile.AddInvasion(this, mobile);
            }
        }