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); } }
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); } }