/// <summary> /// Gets the mission by category. /// </summary> public LogicMission GetMissionByCategory(int category) { for (int i = 0; i < this._openMissions.Count; i++) { LogicMission mission = this._openMissions[i]; if (mission.GetMissionData().GetMissionCategory() == category) { return(mission); } } return(null); }
/// <summary> /// Gets the mission by data. /// </summary> public LogicMission GetMissionByData(LogicMissionData data) { for (int i = 0; i < this._openMissions.Count; i++) { LogicMission mission = this._openMissions[i]; if (mission.GetMissionData() == data) { return(mission); } } return(null); }