/// <summary> /// Adds the given state(s) to the quest with the given ID (keeping any old states) /// </summary> /// <param name="id">The particular quest</param> /// <param name="state">The state(s) to add</param> public static void addQuestState(QuestID id, QuestState state) { nullCheck(); triggers[(int)id] |= state; //push event QuestEventArgs args = new QuestEventArgs(); args.questID = id; args.questStateChange = state; args.add = true; pushEvent(args); }
private static void pushEvent(QuestEventArgs e) { if (QuestStateChanged != null) { QuestStateChanged(null, e); } }
private void questEventListener(object sender, QuestEventArgs e) { this.pushNotification("Updated Quest " + SunsetUtils.enumToString<QuestID>(e.questID)); }