public override void Cleanup() { // Remove any outdated bounties, and remove any posts made by players. Cannot deny player postings without editing BaseBulletinBoard. var validBountyPlayers = BountyInformation.GetValidBounties().Select(x => x.BountyPlayer); Items.Where(x => !validBountyPlayers.Contains(((BountyMessage)x).BountyPlayer)) .ToList() .ForEach(message => message.Delete()); }
private void GetInitialBounties() { var bountyPlayers = BountyInformation.GetValidBounties().Select(x => x.BountyPlayer); foreach (var bounty in bountyPlayers) { AddBountyToBoard(bounty); } }