a handler to add players in Corax

This commit is contained in:
blue 2018-08-12 01:11:33 +03:00
parent 5100d91a72
commit b5ea024faf
2 changed files with 72 additions and 5 deletions

View file

@ -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();