diff --git a/SConstruct b/SConstruct index 7720c7d..422060f 100644 --- a/SConstruct +++ b/SConstruct @@ -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', diff --git a/app/ai/ai_node.cpp b/app/ai/ai_node.cpp new file mode 100644 index 0000000..cd9c498 --- /dev/null +++ b/app/ai/ai_node.cpp @@ -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 *links) { + links->push_back(AdminSectionLinkInfo("- News Editor", "")); +} +bool AINode::admin_full_render() { + return false; +} + +AINode::AINode() : + AdminNode() { +} + +AINode::~AINode() { +} diff --git a/app/ai/ai_node.h b/app/ai/ai_node.h new file mode 100644 index 0000000..8966827 --- /dev/null +++ b/app/ai/ai_node.h @@ -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 *links); + bool admin_full_render(); + + AINode(); + ~AINode(); +}; + +#endif \ No newline at end of file diff --git a/app/event/game_event_handler.cpp b/app/event/game_event_handler.cpp new file mode 100644 index 0000000..a92e586 --- /dev/null +++ b/app/event/game_event_handler.cpp @@ -0,0 +1,9 @@ +#include "game_event_handler.h" + + +GameEventHandler::GameEventHandler() : + Reference() { +} + +GameEventHandler::~GameEventHandler() { +} diff --git a/app/event/game_event_handler.h b/app/event/game_event_handler.h new file mode 100644 index 0000000..b0ede94 --- /dev/null +++ b/app/event/game_event_handler.h @@ -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 \ No newline at end of file