示例#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
        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);
            }
        }