コード例 #1
0
        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());
        }
コード例 #2
0
        private void GetInitialBounties()
        {
            var bountyPlayers = BountyInformation.GetValidBounties().Select(x => x.BountyPlayer);

            foreach (var bounty in bountyPlayers)
            {
                AddBountyToBoard(bounty);
            }
        }