Esempio n. 1
0
 static void recoverQuestVar(Character ch, string name, QuestCallback f)
 {
     //    assert(ch->questCache.find(name) == ch->questCache.end());
     //    int id = ch->getDatabaseID();
     //    PendingQuests::iterator i = pendingQuests.lower_bound(id);
     //    if (i == pendingQuests.end() || i->first != id)
     //    {
     //        i = pendingQuests.insert(i, std::make_pair(id, PendingQuest()));
     //        i->second.character = ch;
     //        /* Register a listener, because we cannot afford to get invalid
     //           pointers, when we finally recover the variable. */
     //        ch->addListener(&questDeathListener);
     //    }
     //    i->second.variables[name].push_back(f);
     //    accountHandler->requestCharacterVar(ch, name);
 }
Esempio n. 2
0
 public QuestCallbackEntry(int number, QuestCallback callback)
     : this(number, -1, callback)
 {
 }
Esempio n. 3
0
 public QuestCallbackEntry(int number, int range, QuestCallback callback)
     : base(number, range)
 {
     m_Callback = callback;
 }
Esempio n. 4
0
		public QuestCallbackEntry( int number, int range, QuestCallback callback ) : base( number, range )
		{
			m_Callback = callback;
		}
Esempio n. 5
0
		public QuestCallbackEntry( int number, QuestCallback callback ) : this( number, -1, callback )
		{
		}