Inheritance: System.EventArgs
Example #1
0
        /// <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);
        }
Example #2
0
 private static void pushEvent(QuestEventArgs e)
 {
     if (QuestStateChanged != null)
     {
         QuestStateChanged(null, e);
     }
 }
Example #3
0
 private void questEventListener(object sender, QuestEventArgs e)
 {
     this.pushNotification("Updated Quest " + SunsetUtils.enumToString<QuestID>(e.questID));
 }