Exemple #1
0
        public void CompliteMissions(string missionCodeName)
        {
            IMission mission = this.Missions.FirstOrDefault(m => m.CodeName == missionCodeName);

            if (mission == null)
            {
                throw new ArgumentException("Mission not found!");
            }
            mission.Complite();
        }