00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _TMWSERV_GAMESERVER_QUEST_
00023 #define _TMWSERV_GAMESERVER_QUEST_
00024
00025 #include <string>
00026
00027 class Character;
00028
00029 struct QuestCallback
00030 {
00031 void (*handler)(Character *, const std::string &name,
00032 const std::string &value, void *data);
00033 void *data;
00034 };
00035
00040 bool getQuestVar(Character *, const std::string &name, std::string &value);
00041
00045 void setQuestVar(Character *, const std::string &name,
00046 const std::string &value);
00047
00052 void recoverQuestVar(Character *, const std::string &name,
00053 const QuestCallback &);
00054
00058 void recoveredQuestVar(int id, const std::string &name,
00059 const std::string &value);
00060
00061 #endif