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); }
public QuestCallbackEntry(int number, QuestCallback callback) : this(number, -1, callback) { }
public QuestCallbackEntry(int number, int range, QuestCallback callback) : base(number, range) { m_Callback = callback; }
public QuestCallbackEntry( int number, int range, QuestCallback callback ) : base( number, range ) { m_Callback = callback; }
public QuestCallbackEntry( int number, QuestCallback callback ) : this( number, -1, callback ) { }