public Definition(string text, string path, OpportunityCategory oppName, bool visible) : base(text, path, oppName) { mVisible = visible; }
public static List<Opportunity> GetAllOpportunities(Sim sim, OpportunityCategory category) { Dictionary<OpportunityNames, Opportunity> opportunityList = new Dictionary<OpportunityNames, Opportunity>(); if (category == OpportunityCategory.None) { foreach (Opportunity opp in OpportunityManager.sDictionary.Values) { if (opp.IsCareer) continue; opportunityList[opp.Guid] = opp; } } else { Dictionary<OpportunityNames, Opportunity> categoryList = null; switch (category) { case OpportunityCategory.AdventureEgypt: categoryList = OpportunityManager.sAdventureEgyptOpportunityList; break; case OpportunityCategory.AdventureFrance: categoryList = OpportunityManager.sAdventureFranceOpportunityList; break; case OpportunityCategory.AdventureChina: categoryList = OpportunityManager.sAdventureChinaOpportunityList; break; case OpportunityCategory.Dare: categoryList = OpportunityManager.sDareOpportunityList; break; case OpportunityCategory.DayJob: categoryList = OpportunityManager.sDayJobOpportunityList; break; case OpportunityCategory.SocialGroup: categoryList = OpportunityManager.sSocialGroupOpportunityList; break; case OpportunityCategory.Skill: categoryList = OpportunityManager.sSkillOpportunityList; break; case OpportunityCategory.Career: categoryList = OpportunityManager.sCareerPhoneCallOpportunityList; break; case OpportunityCategory.Special: categoryList = OpportunityManager.sCelebritySystemOpportunityList; break; } if (categoryList != null) { foreach (Opportunity opp in categoryList.Values) { opportunityList[opp.Guid] = opp; } } } return GetAllOpportunities(sim, (category != OpportunityCategory.None), opportunityList); }
public static List <Opportunity> GetAllOpportunities(Sim sim, OpportunityCategory category) { Dictionary <OpportunityNames, Opportunity> opportunityList = new Dictionary <OpportunityNames, Opportunity>(); if (category == OpportunityCategory.None) { foreach (Opportunity opp in OpportunityManager.sDictionary.Values) { if (opp.IsCareer) { continue; } opportunityList[opp.Guid] = opp; } } else { Dictionary <OpportunityNames, Opportunity> categoryList = null; switch (category) { case OpportunityCategory.AdventureEgypt: categoryList = OpportunityManager.sAdventureEgyptOpportunityList; break; case OpportunityCategory.AdventureFrance: categoryList = OpportunityManager.sAdventureFranceOpportunityList; break; case OpportunityCategory.AdventureChina: categoryList = OpportunityManager.sAdventureChinaOpportunityList; break; case OpportunityCategory.Dare: categoryList = OpportunityManager.sDareOpportunityList; break; case OpportunityCategory.DayJob: categoryList = OpportunityManager.sDayJobOpportunityList; break; case OpportunityCategory.SocialGroup: categoryList = OpportunityManager.sSocialGroupOpportunityList; break; case OpportunityCategory.Skill: categoryList = OpportunityManager.sSkillOpportunityList; break; case OpportunityCategory.Career: categoryList = OpportunityManager.sCareerPhoneCallOpportunityList; break; case OpportunityCategory.Special: categoryList = OpportunityManager.sCelebritySystemOpportunityList; break; } if (categoryList != null) { foreach (Opportunity opp in categoryList.Values) { opportunityList[opp.Guid] = opp; } } } return(GetAllOpportunities(sim, (category != OpportunityCategory.None), opportunityList)); }