diff --git a/README.md b/README.md index 6b08d826..e7804502 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,12 @@ +# 临时信息: +本仓库暂时用于南京航空航天大学2023级C++程序设计课设用途 + +本人学号162320129 + +## 模块关系总览(.svg) +![svg_img](D:\projects\GameEngine\doc\Core_Module_Relations.svg) + + # What will this project about and be ## Wrong Project Name Currently: This is not an engine at all! diff --git a/main.cpp b/main.cpp index 701f5930..7bbf5f3e 100644 --- a/main.cpp +++ b/main.cpp @@ -638,7 +638,24 @@ void setupBaseDraw(){ }); } -int main(const int argc, char* argv[]){ +int main(){ + OS::File file{R"(D:\projects\GameEngine\src)"}; + OS::File exportFile{R"(D:\projects\GameEngine\doc\export.txt)"}; + + std::ostringstream ss{}; + + file.forAllSubs([&](OS::File f){ + ss << (f.filename() | std::ranges::views::transform([](const char c){return static_cast(std::toupper(c));}) | std::ranges::to()) << " BEGIN \n"; + ss << f.readString(); + ss << '\n'; + ss << (f.filename() | std::ranges::views::transform([](const char c){return static_cast(std::toupper(c));}) | std::ranges::to()) << " END \n"; + ss << '\n'; + }); + + exportFile.writeString(std::move(ss).str()); +} + +int main_(const int argc, char* argv[]){ //Init ::Test::init(argc, argv); diff --git a/raw-assets/Doxyfile b/raw-assets/Doxyfile index ebe0948f..3a019864 100644 --- a/raw-assets/Doxyfile +++ b/raw-assets/Doxyfile @@ -42,7 +42,7 @@ DOXYFILE_ENCODING = UTF-8 # title of most generated pages and in a few other places. # The default value is: My Project. -PROJECT_NAME = ProjectDoc +PROJECT_NAME = GameEngine # The PROJECT_NUMBER tag can be used to enter a project or revision number. This # could be handy for archiving the generated documentation or if some version @@ -61,7 +61,7 @@ PROJECT_BRIEF = # pixels and the maximum width should not exceed 200 pixels. Doxygen will copy # the logo to the output directory. -PROJECT_LOGO = +PROJECT_LOGO = D:/projects/GameEngine/properties/icon.ico # With the PROJECT_ICON tag one can specify an icon that is included in the tabs # when the HTML document is shown. Doxygen will copy the logo to the output @@ -74,7 +74,7 @@ PROJECT_ICON = # entered, it will be relative to the location where doxygen was started. If # left blank the current directory will be used. -OUTPUT_DIRECTORY = D:/projects/temp +OUTPUT_DIRECTORY = ../doc # If the CREATE_SUBDIRS tag is set to YES then doxygen will create up to 4096 # sub-directories (in 2 levels) under the output directory of each output format @@ -2533,7 +2533,7 @@ EXTERNAL_PAGES = YES # and usage relations if the target is undocumented or is not a class. # The default value is: YES. -HIDE_UNDOC_RELATIONS = NO +HIDE_UNDOC_RELATIONS = YES # If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is # available from the path. This tool is part of Graphviz (see: @@ -2552,7 +2552,7 @@ HAVE_DOT = YES # Minimum value: 0, maximum value: 32, default value: 0. # This tag requires that the tag HAVE_DOT is set to YES. -DOT_NUM_THREADS = 2 +DOT_NUM_THREADS = 0 # DOT_COMMON_ATTR is common attributes for nodes, edges and labels of # subgraphs. When you want a differently looking font in the dot files that @@ -2605,7 +2605,7 @@ DOT_FONTPATH = # Possible values are: NO, YES, TEXT, GRAPH and BUILTIN. # The default value is: YES. -CLASS_GRAPH = GRAPH +CLASS_GRAPH = YES # If the COLLABORATION_GRAPH tag is set to YES then doxygen will generate a # graph for each documented class showing the direct and indirect implementation @@ -2617,7 +2617,7 @@ CLASS_GRAPH = GRAPH # The default value is: YES. # This tag requires that the tag HAVE_DOT is set to YES. -COLLABORATION_GRAPH = YES +COLLABORATION_GRAPH = NO # If the GROUP_GRAPHS tag is set to YES then doxygen will generate a graph for # groups, showing the direct groups dependencies. Explicit enabling a group @@ -2628,7 +2628,7 @@ COLLABORATION_GRAPH = YES # The default value is: YES. # This tag requires that the tag HAVE_DOT is set to YES. -GROUP_GRAPHS = YES +GROUP_GRAPHS = NO # If the UML_LOOK tag is set to YES, doxygen will generate inheritance and # collaboration diagrams in a style similar to the OMG's Unified Modeling @@ -2679,7 +2679,7 @@ DOT_WRAP_THRESHOLD = 17 # The default value is: NO. # This tag requires that the tag HAVE_DOT is set to YES. -TEMPLATE_RELATIONS = YES +TEMPLATE_RELATIONS = NO # If the INCLUDE_GRAPH, ENABLE_PREPROCESSING and SEARCH_INCLUDES tags are set to # YES then doxygen will generate a graph for each documented file showing the @@ -2702,7 +2702,7 @@ INCLUDE_GRAPH = YES # The default value is: YES. # This tag requires that the tag HAVE_DOT is set to YES. -INCLUDED_BY_GRAPH = YES +INCLUDED_BY_GRAPH = NO # If the CALL_GRAPH tag is set to YES then doxygen will generate a call # dependency graph for every global function or class method. diff --git a/properties/resource/assets/fonts/msyh.ttc b/raw-assets/msyh.ttc similarity index 100% rename from properties/resource/assets/fonts/msyh.ttc rename to raw-assets/msyh.ttc diff --git a/properties/resource/assets/fonts/msyhbd.ttc b/raw-assets/msyhbd.ttc similarity index 100% rename from properties/resource/assets/fonts/msyhbd.ttc rename to raw-assets/msyhbd.ttc diff --git a/properties/resource/assets/fonts/msyhl.ttc b/raw-assets/msyhl.ttc similarity index 100% rename from properties/resource/assets/fonts/msyhl.ttc rename to raw-assets/msyhl.ttc diff --git a/src/game-impl/ui/MainMenu.cpp b/src/game-impl/ui/MainMenu.cpp index bde589ed..eb1a981d 100644 --- a/src/game-impl/ui/MainMenu.cpp +++ b/src/game-impl/ui/MainMenu.cpp @@ -55,7 +55,6 @@ void Game::Scenes::MainMenu::build(){ label.setText(label.getBundleEntry("main-test")); }).expandY().setPad({.bottom = 150}).endLine(); - std::vector>> tempTestBuilders{ {"game", [](const UI::Button& b, bool){