2021-11-14 11:45:34 +01:00
|
|
|
#ifndef VILLAGE_CONTROLLER_H
|
|
|
|
#define VILLAGE_CONTROLLER_H
|
|
|
|
|
|
|
|
#include "core/string.h"
|
|
|
|
#include "core/containers/vector.h"
|
|
|
|
|
|
|
|
#include "core/object.h"
|
|
|
|
|
|
|
|
#include "village.h"
|
|
|
|
|
|
|
|
class Request;
|
|
|
|
class FormValidator;
|
|
|
|
|
|
|
|
class VillageController : public Object {
|
|
|
|
RCPP_OBJECT(VillageController, Object);
|
|
|
|
|
|
|
|
public:
|
2022-02-05 23:02:06 +01:00
|
|
|
void create_table();
|
|
|
|
void drop_table();
|
|
|
|
void create_default_entries();
|
2021-11-14 13:59:02 +01:00
|
|
|
|
2021-11-14 11:45:34 +01:00
|
|
|
virtual void handle_request_default(Request *request);
|
|
|
|
|
|
|
|
static VillageController *get_singleton();
|
|
|
|
|
|
|
|
VillageController();
|
|
|
|
~VillageController();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
static VillageController *_self;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|