public static bool MeetsCondition( QuestCompletedCondition condition, Player player, Event eventInstance, QuestBase questBase ) { return(player.QuestCompleted(condition.QuestId)); }
public static bool MeetsCondition( QuestCompletedCondition condition, Player player, Event eventInstance, QuestBase questBase ) { var questCompleted = QuestBase.Get(condition.QuestId); if (questCompleted != null) { return(player.QuestCompleted(questCompleted)); } return(false); }
private void SaveFormValues(QuestCompletedCondition condition) { condition.QuestId = QuestBase.IdFromList(cmbCompletedQuest.SelectedIndex); }
private void SetupFormValues(QuestCompletedCondition condition) { cmbCompletedQuest.SelectedIndex = QuestBase.ListIndex(condition.QuestId); }