public void UpdateQuest(QuestLogDetail quest) { int old; if (!_questLog.TryGetValue(quest.OldQuest.ToString(), out old)) { return; } _questLog.Remove(quest.OldQuest.ToString()); _questLog.Add(quest.NewQuest.ToString(), old); MyAPIGateway.Utilities.InvokeOnGameThread(() => MyVisualScriptLogicProvider.ReplaceQuestlogDetail(old, quest.NewQuest.ToString(), false, _sendTo) ); }
public void NewQuest(QuestLogDetail quest) { _questLog.Add(quest.NewQuest.ToString(), MyVisualScriptLogicProvider.AddQuestlogDetail(quest.NewQuest.ToString(), false, false, _sendTo)); }