a handler to add players in Corax
This commit is contained in:
parent
5100d91a72
commit
b5ea024faf
2 changed files with 72 additions and 5 deletions
|
@ -30,6 +30,7 @@
|
|||
#include <wDatabase/resourcecache.h>
|
||||
|
||||
#include "tools/parser.h"
|
||||
#include "models/player.h"
|
||||
|
||||
class Corax: public QObject
|
||||
{
|
||||
|
@ -42,6 +43,7 @@ public:
|
|||
static Corax* corax;
|
||||
|
||||
private:
|
||||
bool started;
|
||||
W::Server *server;
|
||||
W::Logger *logger;
|
||||
W::ParentReporter* parentReporter;
|
||||
|
@ -53,9 +55,11 @@ private:
|
|||
|
||||
std::map<W::String, ResourceCache*> caches;
|
||||
std::map<W::String, Parser*> parsers;
|
||||
std::map<W::Address, M::Player*> players;
|
||||
|
||||
handler(clearCache);
|
||||
handler(parseDirectory);
|
||||
handler(givePlayer);
|
||||
|
||||
public slots:
|
||||
void start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue