コード例 #1
0
        private static List <OccultTypes> GetSharedOccults(ref List <OccultTypes> abductee, ref List <OccultTypes> alien)
        {
            List <OccultTypes> types = new List <OccultTypes>();
            List <OccultTypes> valid = OccultTypeHelper.CreateListOfMissingOccults(new List <OccultTypes>()
            {
                OccultTypes.Frankenstein,
                OccultTypes.Mummy,
                OccultTypes.Robot,
                OccultTypes.Unicorn
            }, false);

            foreach (OccultTypes current in valid)
            {
                OccultTypes type = current;

                if (abductee.Contains(type) && alien.Contains(type))
                {
                    types.Add(type);
                    abductee.Remove(type);
                    alien.Remove(type);
                }
            }

            return(types);
        }
コード例 #2
0
ファイル: OccultTypeOption.cs プロジェクト: yakoder/NRaas
        protected override IEnumerable <OccultTypes> GetOptions()
        {
            List <OccultTypes> results = new List <OccultTypes>();

            results = OccultTypeHelper.CreateListOfMissingOccults(new List <OccultTypes> {
                OccultTypes.Frankenstein, OccultTypes.Robot
            }, false);

            return(results);
        }