/// <summary> /// returns the current kill objective targets /// </summary> /// <returns></returns> public Npc[] GetKillObjectiveTargets() { QuestObjective obj; if (m_objectives.TryGetValue(QuestObjectiveType.Kill, out obj)) { QuestObjectiveKill killObj = (QuestObjectiveKill)obj; return(killObj.targets); } return(null); }
/// <summary> /// Complete kill objective and return kill targets for network deletion /// </summary> /// <returns></returns> public Npc[] CompleteKillQuestObjective() { QuestObjective obj; if (m_objectives.TryGetValue(QuestObjectiveType.Kill, out obj)) { QuestObjectiveKill killObj = (QuestObjectiveKill)obj; killObj.ForceComplete(); return(killObj.targets); } return(null); }