예제 #1
0
파일: Quest.cs 프로젝트: Invertika/server
 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);
 }
예제 #2
0
 public QuestCallbackEntry(int number, QuestCallback callback)
     : this(number, -1, callback)
 {
 }
예제 #3
0
 public QuestCallbackEntry(int number, int range, QuestCallback callback)
     : base(number, range)
 {
     m_Callback = callback;
 }
예제 #4
0
		public QuestCallbackEntry( int number, int range, QuestCallback callback ) : base( number, range )
		{
			m_Callback = callback;
		}
예제 #5
0
		public QuestCallbackEntry( int number, QuestCallback callback ) : this( number, -1, callback )
		{
		}