Added more skeleton classes.

This commit is contained in:
Relintai 2022-02-18 16:20:35 +01:00
parent 69dd1e1dfe
commit eb93589e88
5 changed files with 102 additions and 0 deletions

View File

@ -33,10 +33,12 @@ import traceback
folders = [
'app',
'app/ai',
'app/alliance',
'app/assignments',
'app/buildings',
'app/changelog',
'app/event',
'app/hero',
'app/mail',
'app/news',

42
app/ai/ai_node.cpp Normal file
View File

@ -0,0 +1,42 @@
#include "ai_node.h"
#include "web/html/form_validator.h"
#include "web/html/html_builder.h"
#include "web/http/cookie.h"
#include "web/http/http_enums.h"
#include "web/http/http_session.h"
#include "web/http/request.h"
#include "web/http/session_manager.h"
#include "../html_macros.h"
#include "database/database.h"
#include "database/database_manager.h"
#include "database/query_builder.h"
#include "database/query_result.h"
#include "database/table_builder.h"
#include "crypto/hash/sha256.h"
void AINode::handle_request_default(Request *request) {
}
void AINode::admin_handle_request_main(Request *request) {
request->send_error(404);
}
String AINode::admin_get_section_name() {
return "News";
}
void AINode::admin_add_section_links(Vector<AdminSectionLinkInfo> *links) {
links->push_back(AdminSectionLinkInfo("- News Editor", ""));
}
bool AINode::admin_full_render() {
return false;
}
AINode::AINode() :
AdminNode() {
}
AINode::~AINode() {
}

28
app/ai/ai_node.h Normal file
View File

@ -0,0 +1,28 @@
#ifndef AI_NODE_H
#define AI_NODE_H
#include "core/containers/vector.h"
#include "core/string.h"
#include "web_modules/admin_panel/admin_node.h"
class Request;
class FormValidator;
class QueryResult;
class AINode : public AdminNode {
RCPP_OBJECT(AINode, AdminNode);
public:
void handle_request_default(Request *request);
void admin_handle_request_main(Request *request);
String admin_get_section_name();
void admin_add_section_links(Vector<AdminSectionLinkInfo> *links);
bool admin_full_render();
AINode();
~AINode();
};
#endif

View File

@ -0,0 +1,9 @@
#include "game_event_handler.h"
GameEventHandler::GameEventHandler() :
Reference() {
}
GameEventHandler::~GameEventHandler() {
}

View File

@ -0,0 +1,21 @@
#ifndef GAME_EVENT_HANDLER_H
#define GAME_EVENT_HANDLER_H
#include "core/containers/vector.h"
#include "core/string.h"
#include "web_modules/admin_panel/admin_node.h"
class Request;
class FormValidator;
class QueryResult;
class GameEventHandler : public Reference {
RCPP_OBJECT(GameEventHandler, Reference);
public:
GameEventHandler();
~GameEventHandler();
};
#endif