-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(style): fix styles and remove previous solutions
- Loading branch information
Showing
35 changed files
with
319 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
macro(SUBDIRLIST result curdir) | ||
file( | ||
GLOB children CONFIGURE_DEPENDS | ||
RELATIVE ${curdir} | ||
${curdir}/* | ||
) | ||
set(dirlist "") | ||
foreach(child ${children}) | ||
if(IS_DIRECTORY ${curdir}/${child}) | ||
list(APPEND dirlist ${child}) | ||
endif() | ||
endforeach() | ||
set(${result} ${dirlist}) | ||
endmacro() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
//#ifndef MOBAGEN_WEBREQUEST_H | ||
//#define MOBAGEN_WEBREQUEST_H | ||
// #ifndef MOBAGEN_WEBREQUEST_H | ||
// #define MOBAGEN_WEBREQUEST_H | ||
// | ||
//#include <memory> | ||
//#include <string> | ||
//#include <map> | ||
// #include <memory> | ||
// #include <string> | ||
// #include <map> | ||
// | ||
// enum class WebRequestVerb { GET, POST, PUT }; | ||
// enum class WebRequestVerb { GET, POST, PUT }; | ||
// | ||
// enum class ErrorCode { | ||
// OK = 0, | ||
// CONNECTION_FAILURE, | ||
// EMPTY_RESPONSE, | ||
// HOST_RESOLUTION_FAILURE, | ||
// INTERNAL_ERROR, | ||
// INVALID_URL_FORMAT, | ||
// NETWORK_RECEIVE_ERROR, | ||
// NETWORK_SEND_FAILURE, | ||
// OPERATION_TIMEDOUT, | ||
// PROXY_RESOLUTION_FAILURE, | ||
// SSL_CONNECT_ERROR, | ||
// SSL_LOCAL_CERTIFICATE_ERROR, | ||
// SSL_REMOTE_CERTIFICATE_ERROR, | ||
// SSL_CACERT_ERROR, | ||
// GENERIC_SSL_ERROR, | ||
// UNSUPPORTED_PROTOCOL, | ||
// REQUEST_CANCELLED, | ||
// TOO_MANY_REDIRECTS, | ||
// UNKNOWN_ERROR = 1000, | ||
//}; | ||
// enum class ErrorCode { | ||
// OK = 0, | ||
// CONNECTION_FAILURE, | ||
// EMPTY_RESPONSE, | ||
// HOST_RESOLUTION_FAILURE, | ||
// INTERNAL_ERROR, | ||
// INVALID_URL_FORMAT, | ||
// NETWORK_RECEIVE_ERROR, | ||
// NETWORK_SEND_FAILURE, | ||
// OPERATION_TIMEDOUT, | ||
// PROXY_RESOLUTION_FAILURE, | ||
// SSL_CONNECT_ERROR, | ||
// SSL_LOCAL_CERTIFICATE_ERROR, | ||
// SSL_REMOTE_CERTIFICATE_ERROR, | ||
// SSL_CACERT_ERROR, | ||
// GENERIC_SSL_ERROR, | ||
// UNSUPPORTED_PROTOCOL, | ||
// REQUEST_CANCELLED, | ||
// TOO_MANY_REDIRECTS, | ||
// UNKNOWN_ERROR = 1000, | ||
// }; | ||
// | ||
// struct WebResponse { | ||
// public: | ||
// uint32_t status_code; | ||
// std::string text; | ||
// std::map<std::string, std::string> header; | ||
// std::string url; | ||
// // todo: cookies | ||
// ErrorCode errorCode; | ||
// std::string ErrorMessage; | ||
// std::string raw_header{}; | ||
// std::string status_line{}; | ||
// std::string reason{}; | ||
// // todo: uploaded_bytes{}; | ||
// // todo: downloaded_bytes{}; | ||
//}; | ||
// struct WebResponse { | ||
// public: | ||
// uint32_t status_code; | ||
// std::string text; | ||
// std::map<std::string, std::string> header; | ||
// std::string url; | ||
// // todo: cookies | ||
// ErrorCode errorCode; | ||
// std::string ErrorMessage; | ||
// std::string raw_header{}; | ||
// std::string status_line{}; | ||
// std::string reason{}; | ||
// // todo: uploaded_bytes{}; | ||
// // todo: downloaded_bytes{}; | ||
// }; | ||
// | ||
// struct WebRequest { | ||
// WebRequest(std::string uri, WebRequestVerb verb, std::map<std::string, std::string> headers); | ||
//}; | ||
// struct WebRequest { | ||
// WebRequest(std::string uri, WebRequestVerb verb, std::map<std::string, std::string> headers); | ||
// }; | ||
// | ||
//#endif // MOBAGEN_WEBREQUEST_H | ||
// #endif // MOBAGEN_WEBREQUEST_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// | ||
// Created by Alexandre Tolstenko Nogueira on 2023.10.25. | ||
// | ||
|
||
#include "Vector.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#ifndef MOBAGEN_VECTOR_H | ||
#define MOBAGEN_VECTOR_H | ||
/*** | ||
* | ||
* @brief This is just me trying to improve my skills dont use this as a vector replacement | ||
* | ||
* @tparam T data type to hold inside the container | ||
*/ | ||
template <typename T> struct Vector { | ||
private: | ||
T* buffer; | ||
// Constructors | ||
// default (1) | ||
// vector(); | ||
// explicit vector (const allocator_type& alloc); | ||
|
||
// fill (2) | ||
// explicit vector (size_type n, const allocator_type& alloc = allocator_type()); | ||
// vector (size_type n, const value_type& val, const allocator_type& alloc = allocator_type()); | ||
|
||
// range (3) | ||
// template <class InputIterator> vector (InputIterator first, InputIterator last, const allocator_type& alloc = allocator_type()); | ||
|
||
// copy (4) | ||
// vector (const vector& x);vector (const vector& x, const allocator_type& alloc); | ||
|
||
// move (5) | ||
// vector (vector&& x); | ||
// vector (vector&& x, const allocator_type& alloc); | ||
|
||
// initializer list (6) | ||
// vector (initializer_list<value_type> il, const allocator_type& alloc = allocator_type()); | ||
|
||
~Vector(); | ||
}; | ||
|
||
#endif // MOBAGEN_VECTOR_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
//#ifndef MOBAGEN_SCRIPT_H | ||
//#define MOBAGEN_SCRIPT_H | ||
// #ifndef MOBAGEN_SCRIPT_H | ||
// #define MOBAGEN_SCRIPT_H | ||
// | ||
//#include <quickjspp.hpp> | ||
// #include <quickjspp.hpp> | ||
// | ||
// class Script { | ||
// class Script { | ||
// | ||
//}; | ||
// }; | ||
// | ||
//#endif // MOBAGEN_SCRIPT_H | ||
// #endif // MOBAGEN_SCRIPT_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//#include "ScriptManager.h" | ||
//#include "quickjspp.hpp" | ||
// #include "ScriptManager.h" | ||
// #include "quickjspp.hpp" | ||
// | ||
// void ScriptManager::Initialize() { | ||
// void ScriptManager::Initialize() { | ||
// | ||
//} | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.